pub struct MixerControl<T>(/* private fields */);Expand description
Handle for controlling a Mixer from another thread
Implementations§
Source§impl<T> MixerControl<T>
impl<T> MixerControl<T>
Sourcepub fn play<S>(&mut self, signal: S) -> Mixed
pub fn play<S>(&mut self, signal: S) -> Mixed
Begin playing signal, returning a handle that can be used to pause or stop it and access
other controls
Finished signals are automatically stopped, and their storage reused for future play
calls.
The type of signal given determines what additional controls can be used. See the examples for a detailed guide.
Auto Trait Implementations§
impl<T> Freeze for MixerControl<T>
impl<T> !RefUnwindSafe for MixerControl<T>
impl<T> Send for MixerControl<T>
impl<T> Sync for MixerControl<T>
impl<T> Unpin for MixerControl<T>
impl<T> !UnwindSafe for MixerControl<T>
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