pub struct Router<H: HtmlAssets> { /* private fields */ }Expand description
A protocol aware router
Implementations§
Source§impl<H: HtmlAssets> Router<H>
 
impl<H: HtmlAssets> Router<H>
pub fn new<I, P>(handlers: I) -> Selfwhere
    I: IntoIterator<Item = P>,
    P: DynamicProtocol + 'static,
Auto Trait Implementations§
impl<H> Freeze for Router<H>
impl<H> !RefUnwindSafe for Router<H>
impl<H> Send for Router<H>where
    H: Send,
impl<H> Sync for Router<H>where
    H: Sync,
impl<H> Unpin for Router<H>where
    H: Unpin,
impl<H> !UnwindSafe for Router<H>
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