[−][src]Struct rodio::Device
The Device implementation associated with the platform's dynamically dispatched Host type.
Trait Implementations
impl DeviceTrait for Device
[src]
type SupportedInputConfigs = SupportedInputConfigs
The iterator type yielding supported input stream formats.
type SupportedOutputConfigs = SupportedOutputConfigs
The iterator type yielding supported output stream formats.
type Stream = Stream
The stream type created by build_input_stream_raw
and build_output_stream_raw
.
pub fn name(&self) -> Result<String, DeviceNameError>
[src]
pub fn supported_input_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedInputConfigs, SupportedStreamConfigsError>
[src]
&self
) -> Result<<Device as DeviceTrait>::SupportedInputConfigs, SupportedStreamConfigsError>
pub fn supported_output_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedOutputConfigs, SupportedStreamConfigsError>
[src]
&self
) -> Result<<Device as DeviceTrait>::SupportedOutputConfigs, SupportedStreamConfigsError>
pub fn default_input_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
[src]
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
pub fn default_output_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
[src]
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
pub fn build_input_stream_raw<D, E>(
&self,
config: &StreamConfig,
sample_format: SampleFormat,
data_callback: D,
error_callback: E
) -> Result<<Device as DeviceTrait>::Stream, BuildStreamError> where
D: FnMut(&Data, &InputCallbackInfo) + Send + 'static,
E: FnMut(StreamError) + Send + 'static,
[src]
&self,
config: &StreamConfig,
sample_format: SampleFormat,
data_callback: D,
error_callback: E
) -> Result<<Device as DeviceTrait>::Stream, BuildStreamError> where
D: FnMut(&Data, &InputCallbackInfo) + Send + 'static,
E: FnMut(StreamError) + Send + 'static,
pub fn build_output_stream_raw<D, E>(
&self,
config: &StreamConfig,
sample_format: SampleFormat,
data_callback: D,
error_callback: E
) -> Result<<Device as DeviceTrait>::Stream, BuildStreamError> where
D: FnMut(&mut Data, &OutputCallbackInfo) + Send + 'static,
E: FnMut(StreamError) + Send + 'static,
[src]
&self,
config: &StreamConfig,
sample_format: SampleFormat,
data_callback: D,
error_callback: E
) -> Result<<Device as DeviceTrait>::Stream, BuildStreamError> where
D: FnMut(&mut Data, &OutputCallbackInfo) + Send + 'static,
E: FnMut(StreamError) + Send + 'static,
fn build_input_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
D: FnMut(&[T], &InputCallbackInfo) + Send + 'static,
E: FnMut(StreamError) + Send + 'static,
T: Sample,
[src]
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
D: FnMut(&[T], &InputCallbackInfo) + Send + 'static,
E: FnMut(StreamError) + Send + 'static,
T: Sample,
fn build_output_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
D: FnMut(&mut [T], &OutputCallbackInfo) + Send + 'static,
E: FnMut(StreamError) + Send + 'static,
T: Sample,
[src]
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
D: FnMut(&mut [T], &OutputCallbackInfo) + Send + 'static,
E: FnMut(StreamError) + Send + 'static,
T: Sample,
impl From<Device> for Device
[src]
impl From<DeviceInner> for Device
[src]
Auto Trait Implementations
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,