[][src]Enum gotham_formdata::Error

#[non_exhaustive]pub enum Error<Err: Error + 'static> {
    IllegalBody(Error),
    IllegalContentType(FromStrError),
    IllegalContentTypeValue(ToStrError),
    IllegalField(StringError),
    InvalidData(Err),
    IoError(Error),
    MissingBoundary,
    MissingContentType,
    MissingContentDisposition,
    MissingField(String),
    MultipartError(Error),
    UnknownContentType(Mime),
    UnknownField(String),
}

This error type is used when parsing form data from a request body was unsuccessful.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IllegalBody(Error)

The body of the request could not be read.

IllegalContentType(FromStrError)

The content type of the body was not a valid mime type.

IllegalContentTypeValue(ToStrError)

The content type of the body contained unreadable bytes.

IllegalField(StringError)

The value of a field could not be parsed into that field's type.

InvalidData(Err)

The body was parsed but contained data that did not pass validation.

IoError(Error)

An I/O error occured while reading the body.

MissingBoundary

The body was a multipart body but did not specify a boundary.

MissingContentType

The request did not specify a content type.

MissingContentDisposition

One of the multipart parts is missing a Content-Disposition header.

MissingField(String)

The body is missing a required field.

MultipartError(Error)

The multipart format was invalid.

UnknownContentType(Mime)

The body's content type is not supported.

UnknownField(String)

The body contained a field that was not expected.

Trait Implementations

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    T::Err: Into<Error>, 
[src]

impl<Err: Debug + Error + 'static> Debug for Error<Err>[src]

impl<Err: Error + 'static> Display for Error<Err>[src]

impl<Err: Error + 'static> Error for Error<Err>[src]

impl<Err: Error + 'static> From<Error> for Error<Err>[src]

impl<Err: Error + 'static> From<Error> for Error<Err>[src]

impl<Err: Error + 'static> From<Error> for Error<Err>[src]

impl<Err: Error + 'static> From<FromStrError> for Error<Err>[src]

impl<Err: Error + 'static> From<ToStrError> for Error<Err>[src]

Auto Trait Implementations

impl<Err> !RefUnwindSafe for Error<Err>[src]

impl<Err> Send for Error<Err> where
    Err: Send
[src]

impl<Err> Sync for Error<Err> where
    Err: Sync
[src]

impl<Err> Unpin for Error<Err> where
    Err: Unpin
[src]

impl<Err> !UnwindSafe for Error<Err>[src]

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<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<E, T> ConvertFromStr<Error<E>> for T where
    E: Error,
    T: FromStr,
    <T as FromStr>::Err: Into<Error>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument 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>,