Trait WatchAndReload

Source
pub trait WatchAndReload {
    type Error;

    // Required methods
    fn watch_and_reload<'life0, 'async_trait>(
        &'life0 self,
        tx: Option<Sender<Result<(), WorkspaceError>>>,
        runner: Arc<dyn CommandRunner + Send + Sync + 'static>,
        cancel_token: CancellationToken,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_relevant_change(&self, path: &Path) -> bool;
}

Required Associated Types§

Required Methods§

Source

fn watch_and_reload<'life0, 'async_trait>( &'life0 self, tx: Option<Sender<Result<(), WorkspaceError>>>, runner: Arc<dyn CommandRunner + Send + Sync + 'static>, cancel_token: CancellationToken, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn is_relevant_change(&self, path: &Path) -> bool

Implementors§