pub struct UriRouter { /* private fields */ }Implementations§
Source§impl UriRouter
impl UriRouter
pub fn new() -> Self
pub fn add_handler(&mut self, handler: Box<dyn UriHandler>)
pub async fn handle_uri(&self, uri_str: &str) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for UriRouter
impl !UnwindSafe for UriRouter
impl Freeze for UriRouter
impl Send for UriRouter
impl Sync for UriRouter
impl Unpin for UriRouter
impl UnsafeUnpin for UriRouter
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