pub struct Route {
pub handler: fn(_: Response, _: &Request) -> Response,
pub path: &'static str,
pub method: &'static str,
}Fields§
§handler: fn(_: Response, _: &Request) -> Response§path: &'static str§method: &'static strImplementations§
Auto Trait Implementations§
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
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