pub enum ReadError {
InvalidContentType,
EmptyBody,
ParseFromStr,
NotMultipart,
NotFormData,
InvalidRange,
Multer(Error),
Io(Error),
Hyper(Error),
Utf8(Utf8Error),
SerdeJson(Error),
}
Expand description
ReadError, errors happened when read data from http request.
Variants
InvalidContentType
The Hyper request did not have a valid Content-Type header.
EmptyBody
The Hyper request’s body is empty.
ParseFromStr
Parse error when pase from str.
NotMultipart
The Hyper request Content-Type top-level Mime was not Multipart
.
NotFormData
The Hyper request Content-Type sub-level Mime was not FormData
.
InvalidRange
InvalidRange.
Multer(Error)
Tuple Fields
0: Error
An multer error.
Io(Error)
Tuple Fields
0: Error
An I/O error.
Hyper(Error)
Tuple Fields
0: Error
An error was returned from hyper.
Utf8(Utf8Error)
Tuple Fields
0: Utf8Error
An error occurred during UTF-8 processing.
SerdeJson(Error)
Tuple Fields
0: Error
Serde json error.
Trait Implementations
Write data to Respone
.
Auto Trait Implementations
impl !RefUnwindSafe for ReadError
impl !UnwindSafe for ReadError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more