Struct jsonrpc_core::MetaIoHandler [] [src]

pub struct MetaIoHandler<T: Metadata, S: Middleware<T> = Noop> { /* fields omitted */ }

Request handler

By default compatible only with jsonrpc v2

Methods

impl<T: Metadata> MetaIoHandler<T>
[src]

[src]

Creates new MetaIoHandler compatible with specified protocol version.

impl<T: Metadata, S: Middleware<T>> MetaIoHandler<T, S>
[src]

[src]

Creates new MetaIoHandler

[src]

Creates new MetaIoHandler with specified middleware.

[src]

Adds an alias to a method.

[src]

Adds new supported synchronous method

[src]

Adds new supported asynchronous method

[src]

Adds new supported notification

[src]

Adds new supported asynchronous method with metadata support.

[src]

Adds new supported notification with metadata support.

[src]

Extend this MetaIoHandler with methods defined elsewhere.

[src]

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.

[src]

Handle given request asynchronously.

[src]

Handle deserialized RPC request.

[src]

Handle single call asynchronously.

Trait Implementations

impl<T: Metadata> Default for MetaIoHandler<T>
[src]

[src]

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

impl From<IoHandler> for MetaIoHandler<()>
[src]

[src]

Performs the conversion.