Enum salvo::http::errors::ReadError [−][src]
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
The Hyper request did not have a valid Content-Type header.
The Hyper request’s body is empty.
Parse error when pase from str.
The Hyper request Content-Type top-level Mime was not Multipart
.
The Hyper request Content-Type sub-level Mime was not FormData
.
InvalidRange.
An multer error.
Io(Error)
An I/O error.
Tuple Fields of Io
0: Error
Hyper(Error)
An error was returned from hyper.
Tuple Fields of Hyper
0: Error
Utf8(Utf8Error)
An error occurred during UTF-8 processing.
Tuple Fields of Utf8
0: Utf8Error
SerdeJson(Error)
Serde json error.
Tuple Fields of SerdeJson
0: Error
Trait Implementations
pub fn write<'life0, 'life1, 'life2, 'async_trait>(
self,
_req: &'life0 mut Request,
_depot: &'life1 mut Depot,
res: &'life2 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
ReadError: 'async_trait,
pub fn write<'life0, 'life1, 'life2, 'async_trait>(
self,
_req: &'life0 mut Request,
_depot: &'life1 mut Depot,
res: &'life2 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
ReadError: 'async_trait,
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