Struct jsonrpc_core::IoHandler [] [src]

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

Simplified IoHandler with no Metadata associated with each request.

Methods

impl IoHandler
[src]

[src]

Creates new IoHandler without any metadata.

[src]

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

impl<M: Metadata> IoHandler<M>
[src]

[src]

Handle given string request asynchronously.

[src]

Handle deserialized RPC request asynchronously.

[src]

Handle single Call asynchronously.

[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.

Methods from Deref<Target = MetaIoHandler<M>>

[src]

Adds an alias to a 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<M: Debug + Metadata> Debug for IoHandler<M>
[src]

[src]

Formats the value using the given formatter.

impl<M: Default + Metadata> Default for IoHandler<M>
[src]

[src]

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

impl<M: Metadata> Deref for IoHandler<M>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<M: Metadata> DerefMut for IoHandler<M>
[src]

[src]

Mutably dereferences the value.