Struct cubeb_core::Device
source · pub struct Device(/* private fields */);
Implementations§
Methods from Deref<Target = DeviceRef>§
pub fn as_ptr(&self) -> *mut cubeb_device
sourcepub fn output_name(&self) -> Option<&str>
pub fn output_name(&self) -> Option<&str>
Gets the output device name.
May return None
if there is no output device.
pub fn output_name_bytes(&self) -> Option<&[u8]>
sourcepub fn input_name(&self) -> Option<&str>
pub fn input_name(&self) -> Option<&str>
Gets the input device name.
May return None
if there is no input device.
pub fn input_name_bytes(&self) -> Option<&[u8]>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more