pub enum RouteMatch<'a> {
Found {
handler: &'a Arc<dyn Fn(Request) -> Pin<Box<dyn Future<Output = Response> + Send>> + Send + Sync>,
params: PathParams,
},
NotFound,
MethodNotAllowed {
allowed: Vec<Method>,
},
}Expand description
Result of route matching
Variants§
Auto Trait Implementations§
impl<'a> Freeze for RouteMatch<'a>
impl<'a> !RefUnwindSafe for RouteMatch<'a>
impl<'a> Send for RouteMatch<'a>
impl<'a> Sync for RouteMatch<'a>
impl<'a> Unpin for RouteMatch<'a>
impl<'a> !UnwindSafe for RouteMatch<'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