pub struct DeviceConfigCapture(/* private fields */);
Implementations§
Source§impl DeviceConfigCapture
impl DeviceConfigCapture
pub fn device_id(&self) -> Option<&DeviceId>
Sourcepub fn set_device_id(&mut self, maybe_device_id: Option<DeviceId>)
pub fn set_device_id(&mut self, maybe_device_id: Option<DeviceId>)
Sets the ID of the device that should be used. Be aware that this function will allocate once in order to reserve space for the device id.
pub fn format(&self) -> Format
pub fn set_format(&mut self, format: Format)
pub fn channels(&self) -> u32
pub fn set_channels(&mut self, channels: u32)
pub fn channel_map(&self) -> &[Channel; 32]
pub fn channel_map_mut(&mut self) -> &mut [Channel; 32]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceConfigCapture
impl RefUnwindSafe for DeviceConfigCapture
impl !Send for DeviceConfigCapture
impl !Sync for DeviceConfigCapture
impl Unpin for DeviceConfigCapture
impl UnwindSafe for DeviceConfigCapture
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