[][src]Struct raptorq::EncodingPacket

pub struct EncodingPacket { /* fields omitted */ }

Contains encoding symbols generated from a source block.

As defined in section 4.4.2.

Methods

impl EncodingPacket[src]

pub fn new(payload_id: PayloadId, data: Vec<u8>) -> EncodingPacket[src]

pub fn deserialize(data: &[u8]) -> EncodingPacket[src]

pub fn serialize(&self) -> Vec<u8>[src]

pub fn payload_id(&self) -> &PayloadId[src]

Retrieves packet payload ID.

pub fn data(&self) -> &[u8][src]

Retrieves packet payload.

pub fn split(self) -> (PayloadId, Vec<u8>)[src]

Split a packet into its underlying ID and payload.

Trait Implementations

impl Clone for EncodingPacket[src]

impl Debug for EncodingPacket[src]

impl<'de> Deserialize<'de> for EncodingPacket[src]

impl Eq for EncodingPacket[src]

impl Hash for EncodingPacket[src]

impl Ord for EncodingPacket[src]

impl PartialEq<EncodingPacket> for EncodingPacket[src]

impl PartialOrd<EncodingPacket> for EncodingPacket[src]

impl Serialize for EncodingPacket[src]

impl StructuralEq for EncodingPacket[src]

impl StructuralPartialEq for EncodingPacket[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.