[−][src]Struct jsonrpc_pubsub::PubSubHandler
Publish-Subscribe extension of IoHandler
.
Methods
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, S: Middleware<T>> Into<MetaIoHandler<T, S>> for PubSubHandler<T, S>
[src]
fn into(self) -> MetaIoHandler<T, S>
[src]
impl<T: PubSubMetadata> Default for PubSubHandler<T>
[src]
impl<T: PubSubMetadata, S: Middleware<T>> Deref for PubSubHandler<T, S>
[src]
type Target = MetaIoHandler<T, S>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<T: PubSubMetadata, S: Middleware<T>> DerefMut for PubSubHandler<T, S>
[src]
Auto Trait Implementations
impl<T, S> Send for PubSubHandler<T, S>
impl<T, S> Sync for PubSubHandler<T, S>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.