#[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
sourceimpl 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>
sourceimpl WrappedSlice<DtvStat> for DtvFrontendStats
impl WrappedSlice<DtvStat> for DtvFrontendStats
impl Copy for DtvStat
Auto Trait Implementations
impl RefUnwindSafe for DtvStat
impl Send for DtvStat
impl Sync for DtvStat
impl Unpin for DtvStat
impl UnwindSafe for DtvStat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more