pub struct RouteResult<'router, 'req> { /* private fields */ }Expand description
Result of matching a route, containing matched items and path parameters
Implementations§
Source§impl<'router, 'req> RouteResult<'router, 'req>
impl<'router, 'req> RouteResult<'router, 'req>
Sourcepub fn params(&self) -> &PathParams<'router, 'req>
pub fn params(&self) -> &PathParams<'router, 'req>
Gets the path parameters from the matched route
Sourcepub fn router_items(&self) -> &'router [RouterItem]
pub fn router_items(&self) -> &'router [RouterItem]
Gets the matched router items
Trait Implementations§
Auto Trait Implementations§
impl<'router, 'req> Freeze for RouteResult<'router, 'req>
impl<'router, 'req> !RefUnwindSafe for RouteResult<'router, 'req>
impl<'router, 'req> Send for RouteResult<'router, 'req>
impl<'router, 'req> Sync for RouteResult<'router, 'req>
impl<'router, 'req> Unpin for RouteResult<'router, 'req>
impl<'router, 'req> !UnwindSafe for RouteResult<'router, 'req>
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