Trait WatchAndReload

Source
pub trait WatchAndReload {
    type Error;

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

Required Associated Types§

Required Methods§

Source

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

Source

fn is_relevant_change<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Implementors§

Source§

impl WatchAndReload for CrateHandle

Source§

impl<P, H> WatchAndReload for Workspace<P, H>
where P: for<'async_trait> From<PathBuf> + for<'async_trait> AsRef<Path> + for<'async_trait> Send + for<'async_trait> Sync + 'async_trait, H: WatchAndReload<Error = CrateError> + RebuildOrTest<Error = CrateError> + CrateHandleInterface<P> + Send + Sync,