[−][src]Struct cubeb_core::DeviceInfo
Methods
impl DeviceInfo[src]
pub fn as_ptr(&self) -> *mut cubeb_device_info[src]
Methods from Deref<Target = DeviceInfoRef>
pub fn as_ptr(&self) -> *mut cubeb_device_info[src]
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 From<cubeb_device_info> for DeviceInfo[src]
fn from(x: cubeb_device_info) -> DeviceInfo[src]
impl Default for DeviceInfo[src]
fn default() -> DeviceInfo[src]
impl AsRef<DeviceInfoRef> for DeviceInfo[src]
fn as_ref(&self) -> &DeviceInfoRef[src]
impl DerefMut for DeviceInfo[src]
fn deref_mut(&mut self) -> &mut DeviceInfoRef[src]
impl Deref for DeviceInfo[src]
type Target = DeviceInfoRef
The resulting type after dereferencing.
fn deref(&self) -> &DeviceInfoRef[src]
impl Borrow<DeviceInfoRef> for DeviceInfo[src]
fn borrow(&self) -> &DeviceInfoRef[src]
Auto Trait Implementations
impl !Send for DeviceInfo
impl Unpin for DeviceInfo
impl !Sync for DeviceInfo
impl UnwindSafe for DeviceInfo
impl RefUnwindSafe for DeviceInfo
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> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,