Skip to main content

CallMonitor

Trait CallMonitor 

Source
pub trait CallMonitor: Send + Sync {
    // Provided methods
    fn progress(&self, _done: usize, _total: usize, _message: &str) { ... }
    fn cancelled(&self) -> bool { ... }
}
Expand description

Watches one call: progress reports out, cancellation in. Both are optional for a consumer.

Provided Methods§

Source

fn progress(&self, _done: usize, _total: usize, _message: &str)

done operations of total have finished; the next one starts.

Source

fn cancelled(&self) -> bool

True once the caller no longer wants the result.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§