Struct jsonrpc_pubsub::PubSubHandler [] [src]

pub struct PubSubHandler<T: PubSubMetadata, S: Middleware<T> = NoopMiddleware> { /* fields omitted */ }

Publish-Subscribe extension of IoHandler.

Methods

impl<T: PubSubMetadata, S: Middleware<T>> PubSubHandler<T, S>
[src]

Creates new PubSubHandler

Adds new subscription.

Methods from Deref<Target = MetaIoHandler<T, S>>

Adds an alias to a method.

Adds new supported synchronous method

Adds new supported asynchronous method

Adds new supported notification

Adds new supported asynchronous method with metadata support.

Adds new supported notification with metadata support.

Extend this MetaIoHandler with methods defined elsewhere.

Handle given request synchronously - will block until response is available. If you have any asynchronous methods in your RPC it is much wiser to use handle_request instead and deal with asynchronous requests in a non-blocking fashion.

Handle given request asynchronously.

Handle deserialized RPC request.

Handle single call asynchronously.

Trait Implementations

impl<T: PubSubMetadata> Default for PubSubHandler<T>
[src]

Returns the "default value" for a type. Read more

impl<T: PubSubMetadata, S: Middleware<T>> Deref for PubSubHandler<T, S>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<T: PubSubMetadata, S: Middleware<T>> DerefMut for PubSubHandler<T, S>
[src]

The method called to mutably dereference a value

impl<T: PubSubMetadata, S: Middleware<T>> Into<MetaIoHandler<T, S>> for PubSubHandler<T, S>
[src]

Performs the conversion.