Trait HrTimerCallback

Source
pub trait HrTimerCallback {
    type Pointer<'a>: RawHrTimerCallback;

    // Required method
    fn run(
        this: <Self::Pointer<'_> as RawHrTimerCallback>::CallbackTarget<'_>,
    ) -> HrTimerRestart
       where Self: Sized;
}
Expand description

Implemented by structs that can be the target of a timer callback.

Required Associated Types§

Source

type Pointer<'a>: RawHrTimerCallback

The type whose RawHrTimerCallback::run method will be invoked when the timer expires.

Required Methods§

Source

fn run( this: <Self::Pointer<'_> as RawHrTimerCallback>::CallbackTarget<'_>, ) -> HrTimerRestart
where Self: Sized,

Called by the timer logic when the timer fires.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§