pub enum RouteMatch<'a, H> {
Matched {
route: &'a RouteDef<H>,
params: RouteParams,
},
MethodNotAllowed {
allow: Vec<Method>,
},
NotFound,
}Expand description
Result of matching (method, path) against a Router.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a, H> Forget for RouteMatch<'a, H>
impl<'a, H> Freeze for RouteMatch<'a, H>
impl<'a, H> Move for RouteMatch<'a, H>
impl<'a, H> RefUnwindSafe for RouteMatch<'a, H>where
H: RefUnwindSafe,
impl<'a, H> Send for RouteMatch<'a, H>
impl<'a, H> Sync for RouteMatch<'a, H>
impl<'a, H> Unpin for RouteMatch<'a, H>
impl<'a, H> UnsafeUnpin for RouteMatch<'a, H>where
&'a RouteDef<H>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<Method>: UnsafeUnpin,
impl<'a, H> UnwindSafe for RouteMatch<'a, H>
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