Trait jsonrpc_pubsub::UnsubscribeRpcMethod [−][src]
Unsubscribe handler
Associated Types
Loading content...Required methods
fn call(&self, id: SubscriptionId, meta: Option<M>) -> Self::Out
[src]
Called when client is requesting to cancel existing subscription.
Metadata is not available if the session was closed without unsubscribing.
Implementors
impl<M, F, I> UnsubscribeRpcMethod<M> for F where
F: Fn(SubscriptionId, Option<M>) -> I + Send + Sync + 'static,
I: IntoFuture<Item = Value, Error = Error>,
I::Future: Send + 'static,
[src]
F: Fn(SubscriptionId, Option<M>) -> I + Send + Sync + 'static,
I: IntoFuture<Item = Value, Error = Error>,
I::Future: Send + 'static,