pub trait Instrument {
// Required methods
fn on_enter(&mut self);
fn on_exit(&mut self);
}Expand description
Signal when a span is entered or exited.
Some implementations for commonly used types are provided in the
instruments module. You may also implement this trait yourself.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<'a, P: OutputPin> Instrument for GpioRef<'a, P>
impl<'a, P: OutputPin> Instrument for LegacyGpioRef<'a, P>
Available on crate feature
embedded-hal_0_2 only.impl<P: OutputPin> Instrument for Gpio<P>
impl<P: OutputPin> Instrument for LegacyGpio<P>
Available on crate feature
embedded-hal_0_2 only.