pub struct Router { /* private fields */ }
Expand description
A Struct responsible of dispatching request towards controllers
Implementations
sourceimpl Router
impl Router
sourcepub fn dispatch(&self, req: &mut SyncRequest, res: &mut SyncResponse)
pub fn dispatch(&self, req: &mut SyncRequest, res: &mut SyncResponse)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl !UnwindSafe for Router
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more