pub trait NotificationSender: Send {
// Required methods
fn box_clone(&self) -> Box<dyn NotificationSender>;
fn send_notification(&self, notification: FileNotification);
}
Expand description
A trait for sending notifications over a connection.
Required Methods§
Sourcefn box_clone(&self) -> Box<dyn NotificationSender>
fn box_clone(&self) -> Box<dyn NotificationSender>
This method is necessary to create clones of boxed trait objects.
Sourcefn send_notification(&self, notification: FileNotification)
fn send_notification(&self, notification: FileNotification)
This method is called to send a notification over the corresponding connection.