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
Required methods
fn call(&self, id: SubscriptionId, meta: Option<M>) -> Self::Out
fn call(&self, id: SubscriptionId, meta: Option<M>) -> Self::Out
Called when client is requesting to cancel existing subscription.
Metadata is not available if the session was closed without unsubscribing.