[][src]Struct cubeb_core::DeviceInfo

pub struct DeviceInfo(_);

Methods

impl DeviceInfo[src]

Methods from Deref<Target = DeviceInfoRef>

pub fn devid(&self) -> DeviceId[src]

Device identifier handle.

pub fn device_id(&self) -> Option<&str>[src]

Device identifier which might be presented in a UI.

pub fn device_id_bytes(&self) -> Option<&[u8]>[src]

pub fn friendly_name(&self) -> Option<&str>[src]

Friendly device name which might be presented in a UI.

pub fn friendly_name_bytes(&self) -> Option<&[u8]>[src]

pub fn group_id(&self) -> Option<&str>[src]

Two devices have the same group identifier if they belong to the same physical device; for example a headset and microphone.

pub fn group_id_bytes(&self) -> Option<&[u8]>[src]

pub fn vendor_name(&self) -> Option<&str>[src]

Optional vendor name, may be None.

pub fn vendor_name_bytes(&self) -> Option<&[u8]>[src]

pub fn device_type(&self) -> DeviceType[src]

Type of device (Input/Output).

pub fn state(&self) -> DeviceState[src]

State of device disabled/enabled/unplugged.

pub fn preferred(&self) -> DevicePref[src]

Preferred device.

pub fn format(&self) -> DeviceFormat[src]

Sample format supported.

pub fn default_format(&self) -> DeviceFormat[src]

The default sample format for this device.

pub fn max_channels(&self) -> u32[src]

Channels.

pub fn default_rate(&self) -> u32[src]

Default/Preferred sample rate.

pub fn max_rate(&self) -> u32[src]

Maximum sample rate supported.

pub fn min_rate(&self) -> u32[src]

Minimum sample rate supported.

pub fn latency_lo(&self) -> u32[src]

Lowest possible latency in frames.

pub fn latency_hi(&self) -> u32[src]

Higest possible latency in frames.

Trait Implementations

impl AsRef<DeviceInfoRef> for DeviceInfo[src]

impl Default for DeviceInfo[src]

impl From<cubeb_device_info> for DeviceInfo[src]

impl Deref for DeviceInfo[src]

type Target = DeviceInfoRef

The resulting type after dereferencing.

impl DerefMut for DeviceInfo[src]

impl Borrow<DeviceInfoRef> for DeviceInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]