pub struct Routes { /* private fields */ }Implementations§
Source§impl Routes
impl Routes
pub fn new() -> Self
pub fn push_raw<R>(&mut self, path: RoutePath, route: R)where
R: RawRoute + 'static,
pub fn push<R>(&mut self, path: RoutePath, route: R)where
R: Route + 'static,
pub fn push_catcher<C>(&mut self, catcher: C)where
C: Catcher + 'static,
pub fn route_raw<'a>( &'a self, method: &Method, path: &str, ) -> Option<(&'a Box<dyn RawRoute>, PathParams)>
pub fn route<'a>( &'a self, method: &Method, path: &str, ) -> Option<(&'a Box<dyn Route>, PathParams)>
pub fn catchers(&self) -> Iter<'_, Box<dyn Catcher>>
Auto Trait Implementations§
impl !RefUnwindSafe for Routes
impl !UnwindSafe for Routes
impl Freeze for Routes
impl Send for Routes
impl Sync for Routes
impl Unpin for Routes
impl UnsafeUnpin for Routes
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