pub enum HandleRequestError<C, E> {
Connection(Error<C>),
Handler(E),
}Expand description
The error type for handling HTTP requests
Variants§
Connection(Error<C>)
A connection error (HTTP protocol error or a socket IO error)
Handler(E)
A handler error
Trait Implementations§
Source§impl<C, E> Display for HandleRequestError<C, E>
impl<C, E> Display for HandleRequestError<C, E>
Source§impl<C, E> Error for HandleRequestError<C, E>
impl<C, E> Error for HandleRequestError<C, E>
Source§impl<C, E> Error for HandleRequestError<C, E>
impl<C, E> Error for HandleRequestError<C, E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl<C, E> Freeze for HandleRequestError<C, E>
impl<C, E> RefUnwindSafe for HandleRequestError<C, E>where
E: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, E> Send for HandleRequestError<C, E>
impl<C, E> Sync for HandleRequestError<C, E>
impl<C, E> Unpin for HandleRequestError<C, E>
impl<C, E> UnwindSafe for HandleRequestError<C, E>where
E: UnwindSafe,
C: UnwindSafe,
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