[]Struct rpc::MetaIoHandler

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

Request handler

By default compatible only with jsonrpc v2

Methods

impl<T> MetaIoHandler<T, Noop> where
    T: Metadata, 

Creates new MetaIoHandler compatible with specified protocol version.

impl<T, S> MetaIoHandler<T, S> where
    S: Middleware<T>,
    T: Metadata, 

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

impl<T, S> Debug for MetaIoHandler<T, S> where
    S: Middleware<T> + Debug,
    T: Metadata + Debug

Formats the value using the given formatter. Read more

impl From<IoHandler<()>> for MetaIoHandler<(), Noop>

Performs the conversion.

impl<T> Default for MetaIoHandler<T, Noop> where
    T: Metadata, 

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

impl<T, S> Into<MetaIoHandler<T, S>> for PubSubHandler<T, S> where
    S: Middleware<T>,
    T: PubSubMetadata, 

Performs the conversion.

Auto Trait Implementations

impl<T, S> Send for MetaIoHandler<T, S>

impl<T, S> Sync for MetaIoHandler<T, S>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T