Enum formdata::Error [] [src]

pub enum Error {
    NoRequestContentType,
    NotMultipart,
    NotFormData,
    BoundaryNotSpecified,
    PartialHeaders,
    MissingDisposition,
    InvalidDisposition,
    NoName,
    Eof,
    Httparse(Error),
    Io(Error),
    Hyper(Error),
    Utf8(FromUtf8Error),
    Decoding(Cow<'static, str>),
    Multipart(Error),
    NotAFile,
}

An error type for the formdata crate.

Variants

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

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

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

The Content-Type header failed to specify boundary token.

A multipart section contained only partial headers.

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

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

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

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

An HTTP parsing error from a multipart section.

An I/O error.

An error was returned from Hyper.

An error occurred during UTF-8 processing.

An error occurred during character decoding

A MIME multipart error

Filepart is not a file

Trait Implementations

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter.

impl Debug for Error
[src]

Formats the value using the given formatter.

impl StdError for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more