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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).