pub enum RouteError {
MethodNotAllowed {
allowed: Vec<HttpMethod>,
},
NotFound,
}Expand description
A router miss that distinguishes an unknown path from a wrong method.
Variants§
Trait Implementations§
Source§impl Clone for RouteError
impl Clone for RouteError
Source§fn clone(&self) -> RouteError
fn clone(&self) -> RouteError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RouteError
impl Debug for RouteError
impl Eq for RouteError
Source§impl PartialEq for RouteError
impl PartialEq for RouteError
impl StructuralPartialEq for RouteError
Auto Trait Implementations§
impl Freeze for RouteError
impl RefUnwindSafe for RouteError
impl Send for RouteError
impl Sync for RouteError
impl Unpin for RouteError
impl UnsafeUnpin for RouteError
impl UnwindSafe for RouteError
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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