jsonrpsee_server

Type Alias 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 */ }