#[non_exhaustive]pub enum FlexFecProtection {
Mask {
media_packets: u32,
fec_packets: u32,
},
Row {
l: u8,
},
Column {
l: u8,
d: u8,
},
RowAndColumn {
l: u8,
d: u8,
},
}Expand description
The shape of the FEC a sender applies to each block of consecutive source packets (RFC 8627 section 1.1).
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.
Mask
Flexible masks: blocks of media_packets packets, each protected by fec_packets
interleaved repair packets (the first covers packets 0, n, 2n, …, the second 1, n+1,
…). At most 110 packets per block.
Fields
Row
1-D non-interleaved (row) FEC: one repair packet per l consecutive packets
(section 1.1.1; sent as L=l, D=0). Recovers one loss per row.
Column
1-D interleaved (column) FEC: blocks of l * d packets, one repair packet per column
(section 1.1.2; sent as L=l, D=d). Recovers a burst of up to l packets.
RowAndColumn
2-D FEC: blocks of l * d packets, one repair packet per row (L=l, D=1) and one per
column (L=l, D=d), rows first (section 1.1.4).
Implementations§
Trait Implementations§
Source§impl Clone for FlexFecProtection
impl Clone for FlexFecProtection
impl Copy for FlexFecProtection
Source§impl Debug for FlexFecProtection
impl Debug for FlexFecProtection
impl Eq for FlexFecProtection
Source§impl PartialEq for FlexFecProtection
impl PartialEq for FlexFecProtection
impl StructuralPartialEq for FlexFecProtection
Auto Trait Implementations§
impl Forget for FlexFecProtection
impl Freeze for FlexFecProtection
impl Move for FlexFecProtection
impl RefUnwindSafe for FlexFecProtection
impl Send for FlexFecProtection
impl Sync for FlexFecProtection
impl Unpin for FlexFecProtection
impl UnsafeUnpin for FlexFecProtection
impl UnwindSafe for FlexFecProtection
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