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]

[src]

The human-readable name of the device.

[src]

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).

[src]

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).

[src]

The default input stream format for the device.

[src]

The default output stream format for the device.

Trait Implementations

impl Eq for Device
[src]

impl PartialEq<Device> for Device
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for Device
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Device

impl Sync for Device