[][src]Trait jsonrpc_pubsub::UnsubscribeRpcMethod

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

Unsubscribe handler

Associated Types

type Out: Future<Output = Result<Value>> + Send + 'static[src]

Output type

Loading content...

Required methods

pub 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.

Loading content...

Implementors

impl<M, F, I> UnsubscribeRpcMethod<M> for F where
    F: Fn(SubscriptionId, Option<M>) -> I + Send + Sync + 'static,
    I: Future<Output = Result<Value>> + Send + 'static, 
[src]

type Out = I

Loading content...