pub struct Mount {
pub method: Method,
pub path: String,
pub callback: Box<dyn FnMut(&Request, &mut Response)>,
}
Expand description
Represents a path with a method.
Fields§
§method: Method
§path: String
§callback: Box<dyn FnMut(&Request, &mut Response)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mount
impl !RefUnwindSafe for Mount
impl !Send for Mount
impl !Sync for Mount
impl Unpin for Mount
impl !UnwindSafe for Mount
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