[][src]Enum formdata::Error

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

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.

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(FromUtf8Error)

An error occurred during UTF-8 processing.

Decoding(Cow<'static, str>)

An error occurred during character decoding

Multipart(Error)

A MIME multipart error

NotAFile

Filepart is not a file

Trait Implementations

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<FromUtf8Error> for Error[src]

impl From<Error> for Error[src]

impl Display for Error[src]

impl Debug for Error[src]

impl Error for Error[src]

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

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

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto 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<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.