Skip to main content

tool

Function tool 

Source
pub fn tool<A, O, F>(
    f: impl Fn(A) -> F + Send + Sync + 'static,
    a: impl Argument<A> + Send + Sync + 'static,
) -> Tool<(), ()>
where O: IntoResponse, O::Content: Serialize + Send, F: Future<Output = O> + Send + 'static,