pub struct ActionDef {
pub id: &'static str,
pub handler: fn(Request) -> Pin<Box<dyn Future<Output = Response> + Send>>,
}Fields§
§id: &'static strStable identifier (module::path::fn_name).
handler: fn(Request) -> Pin<Box<dyn Future<Output = Response> + Send>>Auto Trait Implementations§
impl Forget for ActionDef
impl Freeze for ActionDef
impl Move for ActionDef
impl RefUnwindSafe for ActionDef
impl Send for ActionDef
impl Sync for ActionDef
impl Unpin for ActionDef
impl UnsafeUnpin for ActionDef
impl UnwindSafe for ActionDef
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