Struct jsonrpc_pubsub::PubSubHandler [−][src]
pub struct PubSubHandler<T: PubSubMetadata, S: Middleware<T> = Noop> { /* fields omitted */ }
Publish-Subscribe extension of IoHandler
.
Implementations
impl<T: PubSubMetadata, S: Middleware<T>> PubSubHandler<T, S>
[src]
impl<T: PubSubMetadata, S: Middleware<T>> PubSubHandler<T, S>
[src]pub fn new(handler: MetaIoHandler<T, S>) -> Self
[src][−]
Creates new PubSubHandler
pub fn add_subscription<F, G>(
&mut self,
notification: &str,
subscribe: (&str, F),
unsubscribe: (&str, G)
) where
F: SubscribeRpcMethod<T>,
G: UnsubscribeRpcMethod<T>,
[src][−]
&mut self,
notification: &str,
subscribe: (&str, F),
unsubscribe: (&str, G)
) where
F: SubscribeRpcMethod<T>,
G: UnsubscribeRpcMethod<T>,
Adds new subscription.
Trait Implementations
impl<T: PubSubMetadata> Default for PubSubHandler<T>
[src]
impl<T: PubSubMetadata> Default for PubSubHandler<T>
[src]impl<T: PubSubMetadata, S: Middleware<T>> Deref for PubSubHandler<T, S>
[src]
impl<T: PubSubMetadata, S: Middleware<T>> Deref for PubSubHandler<T, S>
[src]impl<T: PubSubMetadata, S: Middleware<T>> DerefMut for PubSubHandler<T, S>
[src]
impl<T: PubSubMetadata, S: Middleware<T>> DerefMut for PubSubHandler<T, S>
[src]impl<T: PubSubMetadata, S: Middleware<T>> Into<MetaIoHandler<T, S>> for PubSubHandler<T, S>
[src]
impl<T: PubSubMetadata, S: Middleware<T>> Into<MetaIoHandler<T, S>> for PubSubHandler<T, S>
[src]fn into(self) -> MetaIoHandler<T, S>
[src][−]
Auto Trait Implementations
impl<T, S = Noop> !RefUnwindSafe for PubSubHandler<T, S>
impl<T, S> Send for PubSubHandler<T, S>
impl<T, S> Sync for PubSubHandler<T, S>
impl<T, S> Unpin for PubSubHandler<T, S> where
S: Unpin,
S: Unpin,