Struct networkcoding::vandermonde_lc::encoder::VLCEncoder
source · pub struct VLCEncoder { /* private fields */ }
Implementations§
source§impl VLCEncoder
impl VLCEncoder
pub fn new(symbol_size: usize, max_window_size: usize) -> VLCEncoder
pub fn protect_data( &mut self, data: Vec<u8>, output: &mut SourceSymbolMetadata, ) -> Result<usize, EncoderError>
pub fn generate_and_serialize_repair_symbol_up_to( &mut self, up_to: SourceSymbolMetadata, ) -> Result<Vec<u8>, EncoderError>
pub fn generate_and_serialize_repair_symbol( &mut self, ) -> Result<Vec<u8>, EncoderError>
pub fn generate_and_serialize_repair_symbol_in_place( &mut self, output: &mut [u8], ) -> Result<usize, EncoderError>
pub fn generate_and_serialize_repair_symbol_in_place_up_to( &mut self, output: &mut [u8], up_to: SourceSymbolMetadata, ) -> Result<usize, EncoderError>
pub fn received_symbol( &mut self, metadata: &[u8], ) -> Result<usize, EncoderError>
pub fn symbol_size(&self) -> usize
pub fn can_send_repair_symbols(&self) -> bool
pub fn remove_up_to(&mut self, md: SourceSymbolMetadata)
pub fn next_metadata(&mut self) -> SourceSymbolMetadata
pub fn next_repair_symbol_size(&self, _up_to: SourceSymbolMetadata) -> usize
pub fn first_metadata(&self) -> Option<SourceSymbolMetadata>
pub fn last_metadata(&self) -> Option<SourceSymbolMetadata>
pub fn current_window_size(&self) -> usize
pub fn contains_symbol(&self, md: SourceSymbolMetadata) -> bool
pub fn get_sent_time(&self, md: SourceSymbolMetadata) -> Option<Instant>
pub fn symbol_landed(&mut self, md: SourceSymbolMetadata)
pub fn remove_landed_symbols(&mut self)
Auto Trait Implementations§
impl Freeze for VLCEncoder
impl RefUnwindSafe for VLCEncoder
impl Send for VLCEncoder
impl Sync for VLCEncoder
impl Unpin for VLCEncoder
impl UnwindSafe for VLCEncoder
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