Trait jsonrpc_pubsub::UnsubscribeRpcMethod
source · [−]pub trait UnsubscribeRpcMethod<M>: Send + Sync + 'static {
type Out: Future<Item = Value, Error = Error> + 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.