#[repr(C)]
pub struct cubeb_device_info {
Show 16 fields pub devid: *const c_void, pub device_id: *const i8, pub friendly_name: *const i8, pub group_id: *const i8, pub vendor_name: *const i8, pub device_type: u32, pub state: u32, pub preferred: u32, pub format: u32, pub default_format: u32, pub max_channels: u32, pub default_rate: u32, pub max_rate: u32, pub min_rate: u32, pub latency_lo: u32, pub latency_hi: u32,
}

Fields§

§devid: *const c_void§device_id: *const i8§friendly_name: *const i8§group_id: *const i8§vendor_name: *const i8§device_type: u32§state: u32§preferred: u32§format: u32§default_format: u32§max_channels: u32§default_rate: u32§max_rate: u32§min_rate: u32§latency_lo: u32§latency_hi: u32

Trait Implementations§

source§

impl Debug for cubeb_device_info

source§

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

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

impl Default for cubeb_device_info

source§

fn default() -> cubeb_device_info

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

impl From<cubeb_device_info> for DeviceInfo

source§

fn from(x: cubeb_device_info) -> DeviceInfo

Converts to this type from the input type.

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.