[][src]Trait jsonrpc_pubsub::UnsubscribeRpcMethod

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;
}

Unsubscribe handler

Associated Types

type Out: Future<Item = Value, Error = Error> + Send + 'static

Output type

Loading content...

Required methods

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.

Loading content...

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]

type Out = I::Future

Loading content...