pub struct HttpRoute {
pub method: Method,
pub path: String,
pub handler: Box<dyn FnOnce(HttpContext, Request<IncomingBody>, Responder) -> LocalBoxFuture<'static, Finished>>,
}Fields§
§method: Method§path: String§handler: Box<dyn FnOnce(HttpContext, Request<IncomingBody>, Responder) -> LocalBoxFuture<'static, Finished>>Implementations§
Auto Trait Implementations§
impl Freeze for HttpRoute
impl !RefUnwindSafe for HttpRoute
impl !Send for HttpRoute
impl !Sync for HttpRoute
impl Unpin for HttpRoute
impl UnsafeUnpin for HttpRoute
impl !UnwindSafe for HttpRoute
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