Struct stream_httparse::Chunk[][src]

pub struct Chunk { /* fields omitted */ }

A single HTTP-Chunk used for sending Data with Transfer-Encoding: Chunked

Implementations

impl Chunk[src]

pub fn new(size: usize, data: Vec<u8>) -> Self[src]

Creates a new Chunk with the given Data as its state

pub fn serialize(&self, buf: &mut Vec<u8>)[src]

Serializes the Chunk into the given Buffer by appending the final Data to the End of it

pub fn size(&self) -> usize[src]

The given Size of the Chunk

Trait Implementations

impl Debug for Chunk[src]

impl PartialEq<Chunk> for Chunk[src]

impl StructuralPartialEq for Chunk[src]

Auto Trait Implementations

impl RefUnwindSafe for Chunk

impl Send for Chunk

impl Sync for Chunk

impl Unpin for Chunk

impl UnwindSafe for Chunk

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, 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.