Enum SlotState
pub enum SlotState {
Off,
Starting,
Running,
Failed(ByPtr<Error>),
Ended,
}Expand description
The state of one media slot, on a broadcast or on a player.
PublishStatus and PlayerStatus both use it, so a UI reports both the
same way. Two Failed states are equal only when they hold the same error,
as [ByPtr] says.
Variants§
Off
Nothing is set.
Starting
Opening, probing encoders, or waiting for a first keyframe.
Running
Media is flowing.
Failed(ByPtr<Error>)
Stopped by an error.
On a broadcast, a failing hardware encoder falls back to software before the slot fails, and a failed slot stays failed until its source is set again. On a player, video and audio both try again after a pause.
Ended
The source ended.
Trait Implementations§
impl Eq for SlotState
impl StructuralPartialEq for SlotState
Auto Trait Implementations§
impl !RefUnwindSafe for SlotState
impl !UnwindSafe for SlotState
impl Freeze for SlotState
impl Send for SlotState
impl Sync for SlotState
impl Unpin for SlotState
impl UnsafeUnpin for SlotState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.