pub struct Router<S> { /* private fields */ }
Expand description
Interface for application router.
Implementations
sourceimpl<S: 'static> Router<S>
impl<S: 'static> Router<S>
sourcepub fn handle(&self, req: &HttpRequest<S>) -> AsyncResult<HttpResponse>
pub fn handle(&self, req: &HttpRequest<S>) -> AsyncResult<HttpResponse>
Handle request
Trait Implementations
Auto Trait Implementations
impl<S> !RefUnwindSafe for Router<S>
impl<S> !Send for Router<S>
impl<S> !Sync for Router<S>
impl<S> Unpin for Router<S>
impl<S> !UnwindSafe for Router<S>
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