[][src]Enum mime_multipart::error::Error

pub enum Error {
    NoRequestContentType,
    NotMultipart,
    BoundaryNotSpecified,
    PartialHeaders,
    EofInMainHeaders,
    EofBeforeFirstBoundary,
    NoCrLfAfterBoundary,
    EofInPartHeaders,
    EofInFile,
    EofInPart,
    Httparse(Error),
    Io(Error),
    Hyper(Error),
    Utf8(FromUtf8Error),
    Decoding(Cow<'static, str>),
}

An error type for the mime-multipart 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.

BoundaryNotSpecified

The Content-Type header failed to specify boundary token.

PartialHeaders

A multipart section contained only partial headers.

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.

An error occurred during UTF-8 processing.

Decoding(Cow<'static, str>)

An error occurred during character decoding

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<FromUtf8Error> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

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<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<T> Typeable for T where
    T: Any

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