Enum solicit::http::session::StreamDataChunk [] [src]

pub enum StreamDataChunk {
    Chunk(usize),
    Last(usize),
    Unavailable,
}

The enum represents the successful completion of the Stream::get_data_chunk method.

Variants

Chunk

A data chunk of the given size, after which more chunks can follow.

Last

The chunk was the last one that the stream will ever write.

Unavailable

No data currently available, but the stream isn't closed yet

Trait Implementations

Derived Implementations

impl Debug for StreamDataChunk

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for StreamDataChunk

fn eq(&self, __arg_0: &StreamDataChunk) -> bool

fn ne(&self, __arg_0: &StreamDataChunk) -> bool

impl Copy for StreamDataChunk

impl Clone for StreamDataChunk

fn clone(&self) -> StreamDataChunk

fn clone_from(&mut self, source: &Self)