pub struct Encoder { /* private fields */ }
Implementations§
source§impl Encoder
impl Encoder
pub fn new(data: &[u8], config: ObjectTransmissionInformation) -> Encoder
pub fn with_defaults(data: &[u8], maximum_transmission_unit: u16) -> Encoder
pub fn get_config(&self) -> ObjectTransmissionInformation
pub fn get_encoded_packets( &self, repair_packets_per_block: u32 ) -> Vec<EncodingPacket>
pub fn get_block_encoders(&self) -> &Vec<SourceBlockEncoder>
Trait Implementations§
source§impl PartialEq for Encoder
impl PartialEq for Encoder
impl Eq for Encoder
impl StructuralPartialEq for Encoder
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
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