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

Request handler

By default compatible only with jsonrpc v2

Implementations

Creates new MetaIoHandler compatible with specified protocol version.

Creates new MetaIoHandler

Creates new MetaIoHandler with specified middleware.

Adds an alias to a 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

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.