jsonrpsee_server

Type Alias SubscriptionMethod

source
pub type SubscriptionMethod<'a> = Arc<dyn Fn(Id<'_>, Params<'_>, MethodSink, SubscriptionState<'_>, Extensions) -> Pin<Box<dyn Future<Output = MethodResponse> + Send + 'a>> + Send + Sync>;
Expand description

Method callback for subscriptions.

Aliased Typeยง

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