Struct hyper_routing::RouterService
source · [−]pub struct RouterService {
pub router: Router,
pub error_handler: fn(_: StatusCode) -> Response<Body>,
}Expand description
The default simple router service.
Fields
router: Routererror_handler: fn(_: StatusCode) -> Response<Body>Implementations
sourceimpl RouterService
impl RouterService
pub fn new(router: Router) -> RouterService
Trait Implementations
sourceimpl Debug for RouterService
impl Debug for RouterService
Auto Trait Implementations
impl !RefUnwindSafe for RouterService
impl Send for RouterService
impl Sync for RouterService
impl Unpin for RouterService
impl UnwindSafe for RouterService
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