Type Alias jsonrpsee_core::server::AsyncMethod

source ·
pub type AsyncMethod<'a> = Arc<dyn Send + Sync + Fn(Id<'a>, Params<'a>, ConnectionId, MaxResponseSize, Extensions) -> BoxFuture<'a, MethodResponse>>;
Expand description

Similar to SyncMethod, but represents an asynchronous handler.

Aliased Type§

struct AsyncMethod<'a> { /* private fields */ }