pub struct Router { /* private fields */ }
Expand description
Router
Implementations§
Source§impl Router
impl Router
Sourcepub fn merge_router(&mut self, target_router: Router)
pub fn merge_router(&mut self, target_router: Router)
Merge Router
Sourcepub fn get_handler(&self, request: &mut Request) -> Option<&Box<RouteHandler>>
pub fn get_handler(&self, request: &mut Request) -> Option<&Box<RouteHandler>>
Get Handler
pathname
must be got from request. Or, you will get a unknown handler.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Router
impl !RefUnwindSafe for Router
impl !Send for Router
impl !Sync for Router
impl Unpin for Router
impl !UnwindSafe for Router
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