pub enum RouterError<E> {
Match(MatchError),
NotAllowed(MethodNotAllowed),
Service(E),
}
Expand description
Error type of Router service.
Variants§
Match(MatchError)
failed to match on a routed service.
NotAllowed(MethodNotAllowed)
a match of service is found but it’s not allowed for access.
Service(E)
error produced by routed service.
Trait Implementations§
Source§impl<E> Debug for RouterError<E>where
E: Debug,
impl<E> Debug for RouterError<E>where
E: Debug,
Source§impl<E> Display for RouterError<E>where
E: Display,
impl<E> Display for RouterError<E>where
E: Display,
Source§impl<E> Error for RouterError<E>where
E: Error,
impl<E> Error for RouterError<E>where
E: Error,
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()
Source§impl<E> From<RouterError<E>> for Errorwhere
E: Into<Self>,
impl<E> From<RouterError<E>> for Errorwhere
E: Into<Self>,
Source§fn from(e: RouterError<E>) -> Self
fn from(e: RouterError<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for RouterError<E>where
E: Freeze,
impl<E> RefUnwindSafe for RouterError<E>where
E: RefUnwindSafe,
impl<E> Send for RouterError<E>where
E: Send,
impl<E> Sync for RouterError<E>where
E: Sync,
impl<E> Unpin for RouterError<E>where
E: Unpin,
impl<E> UnwindSafe for RouterError<E>where
E: 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