Trait jsonrpc_pubsub::UnsubscribeRpcMethod[][src]

pub trait UnsubscribeRpcMethod<M>: Send + Sync + 'static {
    type Out: Future<Output = Result<Value>> + Send + 'static;
    fn call(&self, id: SubscriptionId, meta: Option<M>) -> Self::Out;
}
Expand description

Unsubscribe handler

Associated Types

Output type

Required methods

Called when client is requesting to cancel existing subscription.

Metadata is not available if the session was closed without unsubscribing.

Implementors