Watcher

Trait Watcher 

Source
pub trait Watcher {
    type Payload;

    // Required method
    fn watch<'life0, 'async_trait>(
        &'life0 self,
        sx: Sender<Self::Payload>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn watch<'life0, 'async_trait>( &'life0 self, sx: Sender<Self::Payload>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§