jsonrpc_core

Trait RpcNotification

Source
pub trait RpcNotification<T: Metadata>:
    Send
    + Sync
    + 'static {
    // Required method
    fn execute(&self, params: Params, meta: T);
}
Expand description

Notification with Metadata

Required Methods§

Source

fn execute(&self, params: Params, meta: T)

Execute notification

Implementors§

Source§

impl<F, T> RpcNotification<T> for F
where T: Metadata, F: Fn(Params, T) + Send + Sync + 'static,