#[non_exhaustive]pub enum UnderError {
InvalidAddress(String),
HyperServer(Error),
ReadBody(Error),
JsonDeserialization(Error),
TextDeserialization(FromUtf8Error),
FormDeserialization(FromFormError),
UnsupportedMediaType(Option<Mime>),
PayloadTooLarge(Error),
}Expand description
Errors generated specifically from this library, and not its interactions user code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidAddress(String)
Generated when attempting to parse an address (during
crate::Router::listen), but the address was invalid.
HyperServer(Error)
Generated when attempting to bind and listen using hyper, but it failed for some underlying reason.
ReadBody(Error)
Generated when attempting to read the body of a request, or response, and failing.
JsonDeserialization(Error)
json only.Generated when attempting to deserialize the body of a request or response from JSON.
TextDeserialization(FromUtf8Error)
Generated when attempting to deserialize the body of a request or response from text.
FormDeserialization(FromFormError)
from_form only.Generated when attempting to deserialize the body of a request or response from x-www-form-urlencoded.
UnsupportedMediaType(Option<Mime>)
Generated when attempting to sniff the request or response of its content type.
PayloadTooLarge(Error)
Generated when the request body of the request (if not provided with a Content-Length header) is too large.