Struct cubeb_sys::cubeb_device_info

source ·
#[repr(C)]
pub struct cubeb_device_info {
Show 16 fields pub devid: cubeb_devid, pub device_id: *const c_char, pub friendly_name: *const c_char, pub group_id: *const c_char, pub vendor_name: *const c_char, pub device_type: cubeb_device_type, pub state: cubeb_device_state, pub preferred: cubeb_device_pref, pub format: cubeb_device_fmt, pub default_format: cubeb_device_fmt, pub max_channels: c_uint, pub default_rate: c_uint, pub max_rate: c_uint, pub min_rate: c_uint, pub latency_lo: c_uint, pub latency_hi: c_uint,
}

Fields§

§devid: cubeb_devid§device_id: *const c_char§friendly_name: *const c_char§group_id: *const c_char§vendor_name: *const c_char§device_type: cubeb_device_type§state: cubeb_device_state§preferred: cubeb_device_pref§format: cubeb_device_fmt§default_format: cubeb_device_fmt§max_channels: c_uint§default_rate: c_uint§max_rate: c_uint§min_rate: c_uint§latency_lo: c_uint§latency_hi: c_uint

Trait Implementations§

source§

impl Debug for cubeb_device_info

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for cubeb_device_info

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.