Struct jsonrpc_macros::IoDelegate [] [src]

pub struct IoDelegate<T, M = ()> where
    T: Send + Sync + 'static,
    M: Metadata
{ /* fields omitted */ }

A set of RPC methods and notifications tied to single delegate struct.

Methods

impl<T, M> IoDelegate<T, M> where
    T: Send + Sync + 'static,
    M: Metadata
[src]

Creates new IoDelegate

Adds an alias to existing method. NOTE: Aliases are not transitive, i.e. you cannot create alias to an alias.

Adds sync method to the delegate.

Adds async method to the delegate.

Adds async method with metadata to the delegate.

Adds notification to the delegate.

impl<T, M> IoDelegate<T, M> where
    T: Send + Sync + 'static,
    M: PubSubMetadata
[src]

Adds subscription to the delegate.

Trait Implementations

impl<T, M> Into<HashMap<String, RemoteProcedure<M>>> for IoDelegate<T, M> where
    T: Send + Sync + 'static,
    M: Metadata
[src]

Performs the conversion.