pub trait RunClosure {
type Output: Deserialize + Serialize + 'static;
type Fut: Future<Output = HandlerResult<Self::Output>>;
// Required method
fn run(self) -> Self::Fut;
}
Expand description
Run closure trait
pub trait RunClosure {
type Output: Deserialize + Serialize + 'static;
type Fut: Future<Output = HandlerResult<Self::Output>>;
// Required method
fn run(self) -> Self::Fut;
}
Run closure trait