Type Alias jsonrpsee::AsyncMethod
source · pub type AsyncMethod<'a> = Arc<dyn Fn(Id<'a>, Params<'a>, ConnectionId, usize, Extensions) -> Pin<Box<dyn Future<Output = MethodResponse> + Send + 'a>> + Send + Sync>;
Expand description
Similar to SyncMethod
, but represents an asynchronous handler.
Aliased Type§
struct AsyncMethod<'a> { /* private fields */ }