Enum afire::error::HandleError
source · pub enum HandleError {
NotFound(Method, String),
Panic(Box<Result<Rc<Request>>>, String),
}
Expand description
Errors that can arise while handling a request
Variants§
NotFound(Method, String)
Route matching request path not found
Panic(Box<Result<Rc<Request>>>, String)
A route or middleware panicked while running
Trait Implementations§
source§impl Clone for HandleError
impl Clone for HandleError
source§fn clone(&self) -> HandleError
fn clone(&self) -> HandleError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HandleError
impl Debug for HandleError
source§impl Display for HandleError
impl Display for HandleError
source§impl From<HandleError> for Error
impl From<HandleError> for Error
source§fn from(e: HandleError) -> Self
fn from(e: HandleError) -> Self
Converts to this type from the input type.
source§impl PartialEq<HandleError> for HandleError
impl PartialEq<HandleError> for HandleError
impl Eq for HandleError
Auto Trait Implementations§
impl !RefUnwindSafe for HandleError
impl !Send for HandleError
impl !Sync for HandleError
impl Unpin for HandleError
impl !UnwindSafe for HandleError
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