pub trait NotificationHandler: Send + Sync {
// Required method
fn handle_notification(&self, notification: JsonRpcNotification);
}
Expand description
Notification handler trait
Required Methods§
Sourcefn handle_notification(&self, notification: JsonRpcNotification)
fn handle_notification(&self, notification: JsonRpcNotification)
Handle a notification from the server