Enum rouille::input::post::PostError
[−]
[src]
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 Debug for PostError
[src]
impl From<IoError> for PostError
[src]
impl Error for PostError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more