[][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

WrongContentType

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

BodyAlreadyExtracted

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

IoError(IoError)

Could not read the body from the request.

NotUtf8(String)

Failed to parse a string field.

Field

There was an error with a particular field.

Fields of Field

field: Cow<'static, str>error: PostFieldError

Trait Implementations

impl From<Error> for PostError[src]

impl Display for PostError[src]

impl Debug for PostError[src]

impl Error for PostError[src]

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 Unpin for PostError

impl Sync for PostError

impl Send for PostError

impl !UnwindSafe for PostError

impl !RefUnwindSafe for PostError

Blanket Implementations

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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