pub struct Routes { /* private fields */ }
Implementations§
Source§impl Routes
impl Routes
pub fn new() -> Routes
pub fn get<F, Args>(self, path: &str, func: F) -> Routeswhere
F: Save<F, Args>,
pub fn post<F, Args>(self, path: &str, func: F) -> Routeswhere
F: Save<F, Args>,
pub fn patch<F, Args>(self, path: &str, func: F) -> Routeswhere
F: Save<F, Args>,
pub fn delete<F, Args>(self, path: &str, func: F) -> Routeswhere
F: Save<F, Args>,
pub fn route(self, request: Request) -> Response
Auto Trait Implementations§
impl Freeze for Routes
impl !RefUnwindSafe for Routes
impl !Send for Routes
impl !Sync for Routes
impl Unpin for Routes
impl !UnwindSafe 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