Trait NotificationSender

Source
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§

Source

fn box_clone(&self) -> Box<dyn NotificationSender>

This method is necessary to create clones of boxed trait objects.

Source

fn send_notification(&self, notification: FileNotification)

This method is called to send a notification over the corresponding connection.

Trait Implementations§

Source§

impl Clone for Box<dyn NotificationSender>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for dyn NotificationSender

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§