Struct direct_http::Router
source · pub struct Router { /* private fields */ }Implementations§
source§impl Router
impl Router
pub fn new() -> Self
pub fn subscribe_route( &mut self, method: Method, route: &'static str, handler: ResponseHandler )
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§
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