pub enum RouteLookup<'a> {
Match(RouteMatch<'a>),
MethodNotAllowed {
allowed: AllowedMethods,
},
NotFound,
}Expand description
Result of attempting to locate a route by path and method.
Variants§
Match(RouteMatch<'a>)
A route matched by path and method.
MethodNotAllowed
Path matched, but method is not allowed.
Fields
§
allowed: AllowedMethodsNotFound
No route matched the path.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RouteLookup<'a>
impl<'a> RefUnwindSafe for RouteLookup<'a>
impl<'a> Send for RouteLookup<'a>
impl<'a> Sync for RouteLookup<'a>
impl<'a> Unpin for RouteLookup<'a>
impl<'a> UnwindSafe for RouteLookup<'a>
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