Searched refs:try_new (Results 1 – 12 of 12) sorted by relevance
102 fn try_new(opts: &AudioOptions) -> Result<Self> { in try_new() method187 let wav_source = WavSource::try_new(&opts)?; in playback()247 fn try_new<P: AsRef<Path>>( in try_new() method362 FileType::Wav => Box::new(WavSink::try_new( in capture()
93 let message = CrasClientMessage::try_new(&server_socket)?; in handle_server_message()145 fn try_new(server_socket: &CrasServerSocket) -> Result<CrasClientMessage> { in try_new() method
250 server_state: CrasServerState::try_new(server_state_fd)?, in with_type()441 return CrasStream::try_new( in create_stream()680 let stream = CrasShmStream::try_new(
76 pub fn try_new( in try_new() method
568 pub fn try_new(state_fd: CrasServerStateShmFd) -> io::Result<Self> { in try_new() method1229 CrasServerState::try_new(state_fd).expect("try_new failed for valid server_state fd"); in cras_server_state()1250 CrasServerState::try_new(state_fd) in cras_server_state_old_version()1265 let state_struct = CrasServerState::try_new(state_fd).unwrap(); in cras_server_sync_state_read()
138 pub fn try_new( in try_new() method
28 match RateEstimator::try_new(rate, window, smooth_factor) { in rate_estimator_create()
102 pub fn try_new(rate: u32, window_size: Duration, smooth_factor: f64) -> Result<Self> { in try_new() method
42 vios_client: Arc::new(VioSClient::try_new(server)?), in new()
118 pub fn try_new<P: AsRef<Path>>(server: P) -> Result<VioSClient> { in try_new() method
145 pub fn try_new(mem: GuestMemory, param: Ac97Parameters) -> Result<Self> { in try_new() method
1666 let dev = Ac97Dev::try_new(mem.clone(), ac97_param.clone()).map_err(Error::CreateAc97)?; in create_devices()