Type Alias jsonrpsee::SubscriptionMethod

source ·
pub type SubscriptionMethod<'a> = Arc<dyn Fn(Id<'_>, Params<'_>, MethodSink, SubscriptionState<'_>) -> Pin<Box<dyn Future<Output = Result<MethodResponse, Id<'a>>> + Send + 'a>> + Send + Sync>;
Available on crate feature server only.
Expand description

Method callback for subscriptions.

Aliased Type§

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