pub trait RuntimeTelemetryScope: Send {
// Required methods
fn success(&mut self, attributes: BTreeMap<String, RuntimeAttributeValue>);
fn failure(&mut self, error_type: &str);
// Provided method
fn with_context(&self, callback: &mut dyn FnMut()) { ... }
}Required Methods§
fn success(&mut self, attributes: BTreeMap<String, RuntimeAttributeValue>)
fn failure(&mut self, error_type: &str)
Provided Methods§
fn with_context(&self, callback: &mut dyn FnMut())
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".