Struct rodio::Device[][src]

pub struct Device(_);

An opaque type that identifies a device that is capable of either audio input or output.

Please note that Devices may become invalid if they get disconnected. Therefore all the methods that involve a device return a Result.

Methods

impl Device
[src]

The human-readable name of the device.

An iterator yielding formats that are supported by the backend.

Can return an error if the device is no longer valid (eg. it has been disconnected).

An iterator yielding output stream formats that are supported by the device.

Can return an error if the device is no longer valid (eg. it has been disconnected).

The default input stream format for the device.

The default output stream format for the device.

Trait Implementations

impl Clone for Device
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Device
[src]

impl PartialEq<Device> for Device
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Device

impl Sync for Device