pub struct RouteContext<T> {
pub data: T,
/* private fields */
}
Expand description
The context of a matched route.
Fields§
§data: T
Arbitrary data associated with the router that is available to all handlers.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RouteContext<T>where
T: Freeze,
impl<T> RefUnwindSafe for RouteContext<T>where
T: RefUnwindSafe,
impl<T> Send for RouteContext<T>where
T: Send,
impl<T> Sync for RouteContext<T>where
T: Sync,
impl<T> Unpin for RouteContext<T>where
T: Unpin,
impl<T> UnwindSafe for RouteContext<T>where
T: UnwindSafe,
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