[][src]Enum salvo::http::errors::read_error::ReadError

pub enum ReadError {
    NoRequestContentType,
    NotMultipart,
    NotFormData,
    BoundaryNotSpecified,
    PartialHeaders,
    MissingDisposition,
    InvalidDisposition,
    NoName,
    Eof,
    EofInMainHeaders,
    EofBeforeFirstBoundary,
    NoCrLfAfterBoundary,
    EofInPartHeaders,
    EofInFile,
    EofInPart,
    HttParse(Error),
    Io(Error),
    Hyper(Error),
    Utf8(Utf8Error),
    Decoding(Cow<'static, str>),
    SerdeJson(Error),
    General(String),
    Parsing(String),
    NotAFile,
}

An error type for the form_data crate.

Variants

NoRequestContentType

The Hyper request did not have a Content-Type header.

NotMultipart

The Hyper request Content-Type top-level Mime was not Multipart.

NotFormData

The Hyper request Content-Type sub-level Mime was not FormData.

BoundaryNotSpecified

The Content-Type header failed to specify boundary token.

PartialHeaders

A multipart section contained only partial headers.

MissingDisposition

A multipart section did not have the required Content-Disposition header.

InvalidDisposition

A multipart section did not have a valid corresponding Content-Disposition.

NoName

A multipart section Content-Disposition header failed to specify a name.

Eof

The request body ended prior to reaching the expected terminating boundary.

EofInMainHeaders
EofBeforeFirstBoundary
NoCrLfAfterBoundary
EofInPartHeaders
EofInFile
EofInPart
HttParse(Error)

An HTTP parsing error from a multipart section.

Io(Error)

An I/O error.

Hyper(Error)

An error was returned from Hyper.

Utf8(Utf8Error)

An error occurred during UTF-8 processing.

Decoding(Cow<'static, str>)

An error occurred during character decoding

SerdeJson(Error)
General(String)
Parsing(String)
NotAFile

Filepart is not a file

Trait Implementations

impl Debug for ReadError[src]

impl Display for ReadError[src]

impl Error for ReadError[src]

impl From<Error> for ReadError[src]

impl From<Error> for ReadError[src]

impl From<Error> for ReadError[src]

impl From<Error> for ReadError[src]

impl From<Utf8Error> for ReadError[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> From<T> for T[src]

impl<E> HttpError for E where
    E: 'static + Error + Send + Sync
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,