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]

[src]

Creates new IoDelegate

[src]

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

[src]

Adds sync method to the delegate.

[src]

Adds async method to the delegate.

[src]

Adds async method with metadata to the delegate.

[src]

Adds notification to the delegate.

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

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

[src]

Performs the conversion.