Instrument

Trait Instrument 

Source
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§

Source

fn on_enter(&mut self)

This method is called when the span is entered.

Source

fn on_exit(&mut self)

This method is called when the span is exited.

Implementors§

Source§

impl<'a, P: OutputPin> Instrument for GpioRef<'a, P>

Source§

impl<'a, P: OutputPin> Instrument for LegacyGpioRef<'a, P>

Available on crate feature embedded-hal_0_2 only.
Source§

impl<P: OutputPin> Instrument for Gpio<P>

Source§

impl<P: OutputPin> Instrument for LegacyGpio<P>

Available on crate feature embedded-hal_0_2 only.