Struct raptorq::SourceBlockEncoder
source · pub struct SourceBlockEncoder { /* private fields */ }
Implementations§
source§impl SourceBlockEncoder
impl SourceBlockEncoder
pub fn new( source_block_id: u8, config: &ObjectTransmissionInformation, data: &[u8] ) -> SourceBlockEncoder
pub fn with_encoding_plan( source_block_id: u8, config: &ObjectTransmissionInformation, data: &[u8], plan: &SourceBlockEncodingPlan ) -> SourceBlockEncoder
pub fn source_packets(&self) -> Vec<EncodingPacket>
pub fn repair_packets( &self, start_repair_symbol_id: u32, packets: u32 ) -> Vec<EncodingPacket>
Trait Implementations§
source§impl Clone for SourceBlockEncoder
impl Clone for SourceBlockEncoder
source§fn clone(&self) -> SourceBlockEncoder
fn clone(&self) -> SourceBlockEncoder
Returns a copy of the value. Read more
1.0.0 · 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 SourceBlockEncoder
impl Debug for SourceBlockEncoder
source§impl PartialEq for SourceBlockEncoder
impl PartialEq for SourceBlockEncoder
source§fn eq(&self, other: &SourceBlockEncoder) -> bool
fn eq(&self, other: &SourceBlockEncoder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SourceBlockEncoder
impl StructuralPartialEq for SourceBlockEncoder
Auto Trait Implementations§
impl Freeze for SourceBlockEncoder
impl RefUnwindSafe for SourceBlockEncoder
impl Send for SourceBlockEncoder
impl Sync for SourceBlockEncoder
impl Unpin for SourceBlockEncoder
impl UnwindSafe for SourceBlockEncoder
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