pub enum Outcome<E> {
Idle,
Promoted(Target),
Abandoned(Target, Abandoned<E>),
Ended,
}Expand description
What a transition did, for the caller to act on.
Dropping one unread loses a promotion or an abandoned switch the caller has to report.
Variants§
Idle
Nothing the caller has to act on.
Promoted(Target)
A replacement took over, and the caller reports it as playing.
Abandoned(Target, Abandoned<E>)
A replacement was given up, and why.
Ended
The incumbent ended with nothing on its way: the video has ended.
Trait Implementations§
impl<E: Eq> Eq for Outcome<E>
impl<E: PartialEq> StructuralPartialEq for Outcome<E>
Auto Trait Implementations§
impl<E> Freeze for Outcome<E>where
E: Freeze,
impl<E> RefUnwindSafe for Outcome<E>where
E: RefUnwindSafe,
impl<E> Send for Outcome<E>where
E: Send,
impl<E> Sync for Outcome<E>where
E: Sync,
impl<E> Unpin for Outcome<E>where
E: Unpin,
impl<E> UnsafeUnpin for Outcome<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Outcome<E>where
E: UnwindSafe,
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