[][src]Enum mpart_async::server::MultipartError

pub enum MultipartError {
    InvalidBoundary {
        expected: String,
        found: String,
    },
    IncompleteHeader,
    InvalidHeader,
    ShouldPollField,
    InternalBorrowError,
    HeaderParse(Error),
    Stream(Box<dyn StdError + Send + Sync + 'static>),
    EOFWhileReadingHeaders,
    EOFWhileReadingBoundary,
    EOFWhileReadingBody,
    GarbageAfterBoundary([u8; 2]),
}

The Standard Error Type

Variants

InvalidBoundary

Given if the boundary is not what is expected

Fields of InvalidBoundary

expected: String

The Expected Boundary

found: String

The Found Boundary

IncompleteHeader

Given if when parsing the headers they are incomplete

InvalidHeader

Given if when trying to retrieve a field like name or filename it's not present or malformed

ShouldPollField

Given if in the middle of polling a Field, and someone tries to poll the Stream

InternalBorrowError

Given if in the middle of polling a Field, but the Mutex is in use somewhere else

HeaderParse(Error)

Given if there is an error when parsing headers

Stream(Box<dyn StdError + Send + Sync + 'static>)

Given if there is an error in the underlying stream

EOFWhileReadingHeaders

Given if the stream ends when reading headers

EOFWhileReadingBoundary

Given if the stream ends when reading boundary

EOFWhileReadingBody

Given if if the stream ends when reading the body and there is no end boundary

GarbageAfterBoundary([u8; 2])

Given if there is garbage after the boundary

Trait Implementations

impl Debug for MultipartError[src]

impl Display for MultipartError[src]

impl Error for MultipartError[src]

impl From<Box<dyn Error + 'static + Sync + Send, Global>> for MultipartError[src]

impl From<Error> for MultipartError[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<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>,