pub struct PlaybackHandle { /* private fields */ }Expand description
Handle returned by adapter playback paths that lets callers stop an in-flight playback.
Implementations§
Source§impl PlaybackHandle
impl PlaybackHandle
Sourcepub fn new(id: PlaybackId) -> (PlaybackHandle, Receiver<()>)
pub fn new(id: PlaybackId) -> (PlaybackHandle, Receiver<()>)
Adapter helper: build a handle + the matching cancel receiver.
pub fn id(&self) -> &PlaybackId
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PlaybackHandle
impl !UnwindSafe for PlaybackHandle
impl Freeze for PlaybackHandle
impl Send for PlaybackHandle
impl Sync for PlaybackHandle
impl Unpin for PlaybackHandle
impl UnsafeUnpin for PlaybackHandle
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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