[−][src]Struct cubeb_backend::DeviceInfoRef
Methods
impl DeviceInfoRef
[src]
pub fn devid(&self) -> *const c_void
[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.
impl DeviceInfoRef
[src]
pub unsafe fn from_ptr<'a>(ptr: *mut cubeb_device_info) -> &'a DeviceInfoRef
[src]
pub unsafe fn from_ptr_mut<'a>(
ptr: *mut cubeb_device_info
) -> &'a mut DeviceInfoRef
[src]
ptr: *mut cubeb_device_info
) -> &'a mut DeviceInfoRef
pub fn as_ptr(&self) -> *mut cubeb_device_info
[src]
Trait Implementations
impl Debug for DeviceInfoRef
[src]
impl AsRef<DeviceInfoRef> for DeviceInfo
[src]
fn as_ref(&self) -> &DeviceInfoRef
[src]
impl Borrow<DeviceInfoRef> for DeviceInfo
[src]
fn borrow(&self) -> &DeviceInfoRef
[src]
Auto Trait Implementations
impl Send for DeviceInfoRef
impl Unpin for DeviceInfoRef
impl !Sync for DeviceInfoRef
impl UnwindSafe for DeviceInfoRef
impl !RefUnwindSafe for DeviceInfoRef
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,