Enum breadboard::RequestError
source · pub enum RequestError {
Handler(Box<dyn Error + Send + Sync>),
Hyper(Error),
De(Error),
Ser(Error),
}
Expand description
An error during request handling.
Variants§
Handler(Box<dyn Error + Send + Sync>)
An error returned by the handler function.
Hyper(Error)
An error that occurred during handling of the HTTP stream.
De(Error)
An error that occurred when deserializing the request body.
Ser(Error)
An error that occurred when serializing the response body.
Trait Implementations§
source§impl Debug for RequestError
impl Debug for RequestError
source§impl Display for RequestError
impl Display for RequestError
source§impl Error for RequestError
impl Error for RequestError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()