#[repr(u8)]pub enum CodingLevel {
Passthrough = 0,
Fec = 1,
Interleave = 2,
Salvage = 3,
}Expand description
Coding escalation level read on the hot path.
Variants§
Passthrough = 0
memcpy passthrough - clean link, zero ECC work.
Fec = 1
inter-packet erasure FEC only.
Interleave = 2
FEC plus transmit interleaving for burst tolerance.
Salvage = 3
adds intra-packet bad-FCS salvage.
Implementations§
Source§impl CodingLevel
impl CodingLevel
Source§impl CodingLevel
impl CodingLevel
Sourcepub fn max_level(self, other: CodingLevel) -> CodingLevel
pub fn max_level(self, other: CodingLevel) -> CodingLevel
The higher of two levels.
Trait Implementations§
Source§impl Clone for CodingLevel
impl Clone for CodingLevel
Source§fn clone(&self) -> CodingLevel
fn clone(&self) -> CodingLevel
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 CodingLevel
Source§impl Debug for CodingLevel
impl Debug for CodingLevel
impl Eq for CodingLevel
Source§impl PartialEq for CodingLevel
impl PartialEq for CodingLevel
Source§fn eq(&self, other: &CodingLevel) -> bool
fn eq(&self, other: &CodingLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodingLevel
Auto Trait Implementations§
impl Freeze for CodingLevel
impl RefUnwindSafe for CodingLevel
impl Send for CodingLevel
impl Sync for CodingLevel
impl Unpin for CodingLevel
impl UnsafeUnpin for CodingLevel
impl UnwindSafe for CodingLevel
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