pub struct RepairSymbol {
pub repair_key: u32,
pub first_source_id: u32,
pub window_size: u16,
pub dt: u8,
pub payload: Vec<u8>,
}Expand description
A repair symbol: a random linear combination of the source symbols in the sliding window at the moment it was generated. The metadata lets the decoder reconstruct the exact coefficients.
Fields§
§repair_key: u32Seed for the coefficient generator.
first_source_id: u32Lowest source id in the covered window.
window_size: u16Number of source symbols in the covered window.
dt: u8Density threshold (0..=15).
payload: Vec<u8>sum_i coef_i * source_i over the window.
Trait Implementations§
Source§impl Clone for RepairSymbol
impl Clone for RepairSymbol
Source§fn clone(&self) -> RepairSymbol
fn clone(&self) -> RepairSymbol
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 moreSource§impl Debug for RepairSymbol
impl Debug for RepairSymbol
impl Eq for RepairSymbol
Source§impl PartialEq for RepairSymbol
impl PartialEq for RepairSymbol
impl StructuralPartialEq for RepairSymbol
Auto Trait Implementations§
impl Freeze for RepairSymbol
impl RefUnwindSafe for RepairSymbol
impl Send for RepairSymbol
impl Sync for RepairSymbol
impl Unpin for RepairSymbol
impl UnsafeUnpin for RepairSymbol
impl UnwindSafe for RepairSymbol
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