#[non_exhaustive]pub enum HealthState {
Connecting,
Live,
Reconnecting,
Failed,
}Available on crate feature
std only.Expand description
Ingest health of the pipeline feeding a MediaStore, set by the
caller’s supervisor loop (e.g. multimux::origin::supervisor::supervise)
as it connects/reconnects the source.
Failed is reserved for an unrecoverable connect error class; a
well-behaved supervisor never gives up on a route (sources like cameras
come back), so in practice it cycles Connecting -> Live <->
Reconnecting.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connecting
Never yet connected; the supervisor’s first connect attempt is in flight.
Live
Connected and actively receiving media.
Reconnecting
Lost the source (connect failure, pipeline error, or source EOF) and the supervisor is retrying with backoff.
Failed
Unrecoverable — the supervisor has given up on this route.
Implementations§
Trait Implementations§
Source§impl Clone for HealthState
impl Clone for HealthState
Source§fn clone(&self) -> HealthState
fn clone(&self) -> HealthState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HealthState
Source§impl Debug for HealthState
impl Debug for HealthState
Source§impl Display for HealthState
impl Display for HealthState
impl Eq for HealthState
Source§impl PartialEq for HealthState
impl PartialEq for HealthState
impl StructuralPartialEq for HealthState
Auto Trait Implementations§
impl Freeze for HealthState
impl RefUnwindSafe for HealthState
impl Send for HealthState
impl Sync for HealthState
impl Unpin for HealthState
impl UnsafeUnpin for HealthState
impl UnwindSafe for HealthState
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