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

pub enum StreamDataError {
    Closed,
    Other(Box<Error + Send + Sync>),
}

The enum represents errors that can be returned from the Stream::get_data_chunk method.

Variants

Closed

Indicates that the stream cannot provide any data, since it is closed for further writes from the peer's side.

Other

A different error while trying to obtain the data chunk. Wraps a boxed Error impl.

Trait Implementations

impl<E> From<E> for StreamDataError where E: Error + Send + Sync + 'static

fn from(err: E) -> StreamDataError

Derived Implementations

impl Debug for StreamDataError

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