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 Fwhere T: Metadata, F: Fn(Params, T) + Send + Sync + 'static,