Trait kernel::time::hrtimer::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§
sourcetype Pointer<'a>: RawHrTimerCallback
type Pointer<'a>: RawHrTimerCallback
The type whose RawHrTimerCallback::run
method will be invoked when
the timer expires.
Required Methods§
sourcefn run(
this: <Self::Pointer<'_> as RawHrTimerCallback>::CallbackTarget<'_>
) -> HrTimerRestartwhere
Self: Sized,
fn run(
this: <Self::Pointer<'_> as RawHrTimerCallback>::CallbackTarget<'_>
) -> HrTimerRestartwhere
Self: Sized,
Called by the timer logic when the timer fires.
Object Safety§
This trait is not object safe.