pub enum RouteError<B, E> {
NotFound(Request<B>),
Err(E),
}
Expand description
A route is either not found, or we attempted to run it and ran into an issue.
Variants§
NotFound(Request<B>)
No route matched the provided request, so we hand it back.
Err(E)
The matching route failed; this is the error.
Implementations§
Source§impl<B, E> RouteError<B, E>
impl<B, E> RouteError<B, E>
Sourcepub fn unwrap_err(self) -> E
pub fn unwrap_err(self) -> E
Assume that the RouteError
contains an error and attempt to
unwrap this
§Panics
Panics if the RouteError does not contain an error
Trait Implementations§
Auto Trait Implementations§
impl<B, E> !Freeze for RouteError<B, E>
impl<B, E> !RefUnwindSafe for RouteError<B, E>
impl<B, E> Send for RouteError<B, E>
impl<B, E> Sync for RouteError<B, E>
impl<B, E> Unpin for RouteError<B, E>
impl<B, E> !UnwindSafe for RouteError<B, E>
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