Struct raptorq::SourceBlockEncoder[][src]

pub struct SourceBlockEncoder { /* fields omitted */ }

Implementations

impl SourceBlockEncoder[src]

pub fn new(
    source_block_id: u8,
    symbol_size: u16,
    data: &[u8]
) -> SourceBlockEncoder
[src]

👎 Deprecated since 1.3.0:

Use the new2() function instead. In version 2.0, that function will replace this one

pub fn new2(
    source_block_id: u8,
    config: &ObjectTransmissionInformation,
    data: &[u8]
) -> SourceBlockEncoder
[src]

pub fn with_encoding_plan(
    source_block_id: u8,
    symbol_size: u16,
    data: &[u8],
    plan: &SourceBlockEncodingPlan
) -> SourceBlockEncoder
[src]

👎 Deprecated since 1.3.0:

Use the with_encoding_plan2() function instead. In version 2.0, that function will replace this one

pub fn with_encoding_plan2(
    source_block_id: u8,
    config: &ObjectTransmissionInformation,
    data: &[u8],
    plan: &SourceBlockEncodingPlan
) -> SourceBlockEncoder
[src]

pub fn source_packets(&self) -> Vec<EncodingPacket>[src]

pub fn repair_packets(
    &self,
    start_repair_symbol_id: u32,
    packets: u32
) -> Vec<EncodingPacket>
[src]

Trait Implementations

impl Clone for SourceBlockEncoder[src]

impl Debug for SourceBlockEncoder[src]

impl Eq for SourceBlockEncoder[src]

impl PartialEq<SourceBlockEncoder> for SourceBlockEncoder[src]

impl StructuralEq for SourceBlockEncoder[src]

impl StructuralPartialEq for SourceBlockEncoder[src]

Auto Trait Implementations

impl RefUnwindSafe for SourceBlockEncoder

impl Send for SourceBlockEncoder

impl Sync for SourceBlockEncoder

impl Unpin for SourceBlockEncoder

impl UnwindSafe for SourceBlockEncoder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.