Struct cpal::Device

source ·
pub struct Device(_);
Expand description

The Device implementation associated with the platform’s dynamically dispatched Host type.

Implementations§

Returns a reference to the underlying platform specific implementation of this Device.

Returns a mutable reference to the underlying platform specific implementation of this Device.

Returns the underlying platform specific implementation of this Device.

Trait Implementations§

The iterator type yielding supported input stream formats.
The iterator type yielding supported output stream formats.
The stream type created by build_input_stream_raw and build_output_stream_raw.
The human-readable name of the device.
An iterator yielding formats that are supported by the backend. Read more
An iterator yielding output stream formats that are supported by the device. Read more
The default input stream format for the device.
The default output stream format for the device.
Create a dynamically typed input stream.
Create a dynamically typed output stream.
Create an input stream.
Create an output stream.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.