pub enum Error {
Io(Error),
Http(Error),
HttpParse(Error),
InvalidUri(InvalidUri),
Timeout,
RequestTooLarge,
ConnectionClosed,
// some variants omitted
}
Expand description
Various errors that may happen while handling requests.
Variants§
Io(Error)
An error while doing I/O.
Http(Error)
An HTTP error.
HttpParse(Error)
An error while parsing the HTTP request.
InvalidUri(InvalidUri)
An error while parsing the URI of the request.
Timeout
The request timed out.
RequestTooLarge
The request’s size (headers + body) exceeded the application’s limit.
ConnectionClosed
The connection was closed while reading the request.
Trait Implementations§
Source§impl From<InvalidUri> for Error
impl From<InvalidUri> for Error
Source§fn from(err: InvalidUri) -> Error
fn from(err: InvalidUri) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more