Struct gonk_player::Device
source · [−]pub struct Device(_);Expand description
The Device implementation associated with the platform’s dynamically dispatched Host type.
Trait Implementations
sourceimpl DeviceTrait for Device
impl DeviceTrait for Device
type SupportedInputConfigs = SupportedInputConfigs
type SupportedInputConfigs = SupportedInputConfigs
The iterator type yielding supported input stream formats.
type SupportedOutputConfigs = SupportedOutputConfigs
type SupportedOutputConfigs = SupportedOutputConfigs
The iterator type yielding supported output stream formats.
sourcefn name(&self) -> Result<String, DeviceNameError>
fn name(&self) -> Result<String, DeviceNameError>
The human-readable name of the device.
sourcefn supported_input_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedInputConfigs, SupportedStreamConfigsError>
fn supported_input_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedInputConfigs, SupportedStreamConfigsError>
An iterator yielding formats that are supported by the backend. Read more
sourcefn supported_output_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedOutputConfigs, SupportedStreamConfigsError>
fn supported_output_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedOutputConfigs, SupportedStreamConfigsError>
An iterator yielding output stream formats that are supported by the device. Read more
sourcefn default_input_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
fn default_input_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
The default input stream format for the device.
sourcefn default_output_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
fn default_output_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
The default output stream format for the device.
sourcefn 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: 'static + FnMut(&Data, &InputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
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: 'static + FnMut(&Data, &InputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
Create a dynamically typed input stream.
sourcefn 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: 'static + FnMut(&mut Data, &OutputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
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: 'static + FnMut(&mut Data, &OutputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
Create a dynamically typed output stream.
sourcefn build_input_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
T: Sample,
D: 'static + FnMut(&[T], &InputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
fn build_input_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
T: Sample,
D: 'static + FnMut(&[T], &InputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
Create an input stream.
sourcefn build_output_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
T: Sample,
D: 'static + FnMut(&mut [T], &OutputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
fn build_output_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
T: Sample,
D: 'static + FnMut(&mut [T], &OutputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
Create an output stream.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more