pub struct MethodRouter { /* private fields */ }Expand description
HTTP method router for a single path
Implementations§
Source§impl MethodRouter
impl MethodRouter
Sourcepub fn new() -> MethodRouter
pub fn new() -> MethodRouter
Create a new empty method router
Trait Implementations§
Source§impl Clone for MethodRouter
impl Clone for MethodRouter
Source§fn clone(&self) -> MethodRouter
fn clone(&self) -> MethodRouter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MethodRouter
impl Default for MethodRouter
Source§fn default() -> MethodRouter
fn default() -> MethodRouter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MethodRouter
impl !RefUnwindSafe for MethodRouter
impl Send for MethodRouter
impl Sync for MethodRouter
impl Unpin for MethodRouter
impl !UnwindSafe for MethodRouter
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