Struct cubeb::Device
[−]
[src]
pub struct Device(_);
Methods
impl Device[src]
unsafe fn from_ptr(ptr: *mut cubeb_device) -> Device[src]
fn as_ptr(&self) -> *mut cubeb_device[src]
Methods from Deref<Target = DeviceRef>
fn output_name(&self) -> Option<&str>[src]
Gets the output device name.
May return None if there is no output device.
fn output_name_bytes(&self) -> Option<&[u8]>[src]
fn input_name(&self) -> Option<&str>[src]
Gets the input device name.
May return None if there is no input device.
fn input_name_bytes(&self) -> Option<&[u8]>[src]
fn as_ptr(&self) -> *mut cubeb_device[src]
Trait Implementations
impl DerefMut for Device[src]
impl Debug for Device[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter.
impl Borrow<DeviceRef> for Device[src]
impl Deref for Device[src]
type Target = DeviceRef
The resulting type after dereferencing.
fn deref(&self) -> &DeviceRef[src]
Dereferences the value.