pub struct Router<H>where
H: HtmlAssets,{ /* private fields */ }Expand description
A protocol aware router
Implementations§
Source§impl<H> Router<H>where
H: HtmlAssets,
impl<H> Router<H>where
H: HtmlAssets,
pub fn new<I, P>(handlers: I) -> Router<H>where
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