pub struct Route {
pub path: String,
pub handler: RouteHandler,
pub extensions: Extensions,
}
Fields§
§path: String
§handler: RouteHandler
§extensions: Extensions
Implementations§
Source§impl Route
impl Route
pub fn handle( &self, _request: Request<Body>, _route_matched: RouteMatched, ) -> HandlerFutureDynBox ⓘ
Auto Trait Implementations§
impl Freeze for Route
impl !RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl !UnwindSafe for Route
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