Struct jsonrpc_core::IoHandler[][src]

pub struct IoHandler<M: Metadata = ()>(_);
Expand description

Simplified IoHandler with no Metadata associated with each request.

Implementations

Creates new IoHandler without any metadata.

Creates new IoHandler without any metadata compatible with specified protocol version.

Handle given string request asynchronously.

Handle deserialized RPC request asynchronously.

Handle single Call asynchronously.

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.

Methods from Deref<Target = MetaIoHandler<M>>

Adds an alias to a method.

Adds new supported synchronous method.

A backward-compatible wrapper.

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.

Returns an iterator visiting all methods in arbitrary order.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Performs the conversion.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Extend given handler with additional methods.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.