Skip to main content

NotificationHandler

Trait NotificationHandler 

Source
pub trait NotificationHandler: Send + Sync {
    // Required method
    fn handle_notification(&self, notification: JsonRpcNotification);
}
Expand description

Notification handler trait

Required Methods§

Source

fn handle_notification(&self, notification: JsonRpcNotification)

Handle a notification from the server

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§