fedimint_core::module

Type Alias HandlerFn

Source
type HandlerFn<M> = Box<dyn for<'a> Fn(&'a M, ApiEndpointContext<'a>, ApiRequestErased) -> Pin<Box<dyn Future<Output = Result<Value, ApiError>> + Send + 'a>> + Send + Sync>;

Aliased Typeยง

struct HandlerFn<M>(/* private fields */);