[][src]Struct cubeb_core::DeviceRef

pub struct DeviceRef(_);

Methods

impl DeviceRef[src]

pub unsafe fn from_ptr<'a>(ptr: *mut cubeb_device) -> &'a Self[src]

pub unsafe fn from_ptr_mut<'a>(ptr: *mut cubeb_device) -> &'a mut Self[src]

pub fn as_ptr(&self) -> *mut cubeb_device[src]

impl DeviceRef[src]

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

Gets the output device name.

May return None if there is no output device.

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

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

Gets the input device name.

May return None if there is no input device.

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

Trait Implementations

impl AsRef<DeviceRef> for Device[src]

impl Debug for DeviceRef[src]

impl Borrow<DeviceRef> for Device[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]