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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".