Struct jsonrpc_core::MetaIoHandler [] [src]

pub struct MetaIoHandler<T: Metadata> { /* fields omitted */ }

Request handler

By default compatible only with jsonrpc v2

Methods

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

Creates new MetaIoHandler

Creates new MetaIoHandler compatible with specified protocol version.

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.

Trait Implementations

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

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

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

Performs the conversion.