#[non_exhaustive]pub enum RunningStatus {
Undefined,
NotRunning,
StartsInAFewSeconds,
Pausing,
Running,
ServiceOffAir,
Reserved(u8),
}Expand description
Running status of an event or service — EN 300 468 Table 6.
Codes 6-7 are reserved for future use and round-tripped transparently via
Reserved.
§Examples
use dvb_si::tables::RunningStatus;
let s = RunningStatus::from_u8(4);
assert_eq!(s.name(), "running");
assert_eq!(s.to_u8(), 4); // lossless back to the wire value
// Unallocated codes are preserved verbatim for byte-identical round-trip.
assert_eq!(RunningStatus::from_u8(6).to_u8(), 6);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.
Undefined
Value 0 — undefined.
NotRunning
Value 1 — not running.
StartsInAFewSeconds
Value 2 — starts in a few seconds (e.g. for video recording).
Pausing
Value 3 — pausing.
Running
Value 4 — running.
ServiceOffAir
Value 5 — service off-air.
Reserved(u8)
Reserved/unallocated wire value, preserved verbatim for round-trip.
Implementations§
Trait Implementations§
Source§impl Clone for RunningStatus
impl Clone for RunningStatus
Source§fn clone(&self) -> RunningStatus
fn clone(&self) -> RunningStatus
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 RunningStatus
Source§impl Debug for RunningStatus
impl Debug for RunningStatus
impl Eq for RunningStatus
Source§impl PartialEq for RunningStatus
impl PartialEq for RunningStatus
Source§fn eq(&self, other: &RunningStatus) -> bool
fn eq(&self, other: &RunningStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RunningStatus
impl Serialize for RunningStatus
impl StructuralPartialEq for RunningStatus
Auto Trait Implementations§
impl Freeze for RunningStatus
impl RefUnwindSafe for RunningStatus
impl Send for RunningStatus
impl Sync for RunningStatus
impl Unpin for RunningStatus
impl UnsafeUnpin for RunningStatus
impl UnwindSafe for RunningStatus
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