pub struct Encoder { /* private fields */ }
Implementations
sourceimpl 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
impl Eq for Encoder
impl StructuralEq for Encoder
impl StructuralPartialEq for Encoder
Auto Trait Implementations
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more