[][src]Struct cubeb_core::Device

pub struct Device(_);

Methods

impl Device[src]

pub unsafe fn from_ptr(ptr: *mut cubeb_device) -> Device[src]

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

Methods from Deref<Target = DeviceRef>

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 Deref for Device[src]

type Target = DeviceRef

The resulting type after dereferencing.

impl DerefMut for Device[src]

impl Debug for Device[src]

impl Borrow<DeviceRef> for Device[src]

Auto Trait Implementations

impl !Send for Device

impl Unpin for Device

impl !Sync for Device

impl UnwindSafe for Device

impl RefUnwindSafe for Device

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]