Skip to main content

Watchable

Trait Watchable 

Source
pub trait Watchable: Send + Sync {
    // Required method
    fn watch_output(
        self: Arc<Self>,
        pattern: String,
        cancel: CancellationToken,
    ) -> Pin<Box<dyn Future<Output = WatchResult> + Send>>;
}

Required Methods§

Source

fn watch_output( self: Arc<Self>, pattern: String, cancel: CancellationToken, ) -> Pin<Box<dyn Future<Output = WatchResult> + Send>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§