pub struct AsyncVolumeControl { /* private fields */ }Expand description
A bounded FIFO worker. Submission fails with Error::Busy when 32
requests are waiting. Accepted operations use the same verified hardware
writes, rollback and event delivery as VolumeControl. Close waits for
an executing control transfer; queued operations then fail as closed.
Implementations§
Source§impl AsyncVolumeControl
impl AsyncVolumeControl
pub fn get(&self) -> Result<VolumeOperation<VolumeState>>
Sourcepub fn set_db(&self, db: f64) -> Result<VolumeOperation<VolumeState>>
pub fn set_db(&self, db: f64) -> Result<VolumeOperation<VolumeState>>
pub fn set_fraction( &self, fraction: f64, ) -> Result<VolumeOperation<VolumeState>>
pub fn step( &self, direction: i8, steps: u8, ) -> Result<VolumeOperation<VolumeState>>
pub fn set_mute(&self, muted: bool) -> Result<VolumeOperation<VolumeState>>
pub fn hand_back(&self) -> Result<VolumeOperation<bool>>
Trait Implementations§
Auto Trait Implementations§
impl Forget for AsyncVolumeControl
impl Freeze for AsyncVolumeControl
impl Move for AsyncVolumeControl
impl RefUnwindSafe for AsyncVolumeControl
impl Send for AsyncVolumeControl
impl Sync for AsyncVolumeControl
impl Unpin for AsyncVolumeControl
impl UnsafeUnpin for AsyncVolumeControlwhere
*mut Counter<Channel<Box<dyn FnOnce(&VolumeControl) + Send>>>: UnsafeUnpin,
*mut Counter<Channel<Box<dyn FnOnce(&VolumeControl) + Send>>>: UnsafeUnpin,
*mut Counter<Channel<Box<dyn FnOnce(&VolumeControl) + Send>>>: UnsafeUnpin,
impl UnwindSafe for AsyncVolumeControl
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