[][src]Enum rouille::input::post::PostError

pub enum PostError {
    WrongContentType,
    BodyAlreadyExtracted,
    IoError(IoError),
    NotUtf8(String),
    Field {
        field: Cow<'static, str>,
        error: PostFieldError,
    },
}

Error that can happen when decoding POST data.

Variants

The Content-Type header of the request indicates that it doesn't contain POST data.

Can't parse the body of the request because it was already extracted.

Could not read the body from the request.

Failed to parse a string field.

There was an error with a particular field.

Fields of Field

Trait Implementations

impl From<Error> for PostError
[src]

impl Display for PostError
[src]

impl Debug for PostError
[src]

impl Error for PostError
[src]

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

Auto Trait Implementations

impl Send for PostError

impl Sync for PostError

Blanket Implementations

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

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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