#[repr(u8)]pub enum DtvStat {
FE_SCALE_NOT_AVAILABLE(NoScale),
FE_SCALE_DECIBEL(ScaleDecibel),
FE_SCALE_RELATIVE(ScaleRelative),
FE_SCALE_COUNTER(ScaleCounter),
}
Expand description
Used for reading a DTV status property
Variants§
FE_SCALE_NOT_AVAILABLE(NoScale)
That QoS measure is not available. That could indicate a temporary or a permanent condition.
FE_SCALE_DECIBEL(ScaleDecibel)
The scale is measured in 0.001 dB steps, typically used on signal measures.
FE_SCALE_RELATIVE(ScaleRelative)
The scale is a relative percentual measure, ranging from 0 (0%) to 0xffff (100%).
FE_SCALE_COUNTER(ScaleCounter)
The scale counts the occurrence of an event, like bit error, block error, lapsed time.
Trait Implementations§
Source§impl DtvStatType for DtvStat
impl DtvStatType for DtvStat
fn get_decibel(&self) -> Option<i64>
fn get_relative(&self) -> Option<u16>
fn get_counter(&self) -> Option<u64>
fn get_decibel_float(&self) -> Option<f64>
fn get_relative_percentage(&self) -> Option<u8>
Source§impl WrappedSlice<DtvStat> for DtvFrontendStats
impl WrappedSlice<DtvStat> for DtvFrontendStats
impl Copy for DtvStat
Auto Trait Implementations§
impl Freeze for DtvStat
impl RefUnwindSafe for DtvStat
impl Send for DtvStat
impl Sync for DtvStat
impl Unpin for DtvStat
impl UnwindSafe for DtvStat
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