#[non_exhaustive]pub enum BufsUnit {
Bits,
Kbits,
Mbits,
Kbits8,
}Expand description
BUFS unit selector — EN 302 755 Annex C, Table C.1 (2-bit field).
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.
Implementations§
Source§impl BufsUnit
impl BufsUnit
Sourcepub fn multiplier_bits(self) -> u64
pub fn multiplier_bits(self) -> u64
Number of bits per BUFS unit.
Per EN 302 755 Annex C Table C.1, the 2-bit unit selector names the
scale (bits / Kbits / Mbits / 8Kbits). The standard does not numerically
define K/M; the decimal convention (K = 1 000, M = 1 000 000, 8K = 8 000)
is used, consistent with the standard’s use of decimal Mbit/s
elsewhere (see dvb-bbframe/docs/enums/en_302_755/bufs_unit.md §BUFS/TTO semantics).
Trait Implementations§
impl Copy for BufsUnit
impl Eq for BufsUnit
impl StructuralPartialEq for BufsUnit
Auto Trait Implementations§
impl Freeze for BufsUnit
impl RefUnwindSafe for BufsUnit
impl Send for BufsUnit
impl Sync for BufsUnit
impl Unpin for BufsUnit
impl UnsafeUnpin for BufsUnit
impl UnwindSafe for BufsUnit
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