Re: [PATCH] rust: hrtimer: add active() method to query timer state

From: Miguel Ojeda

Date: Sun Feb 15 2026 - 16:00:24 EST


On Sun, Feb 15, 2026 at 9:30 PM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>
> + /// Query the state of the timer.
> + ///
> + /// Returns `true` if the timer is in the started or running states.

[`true`]

Since we try to add examples when we add APIs, could we perhaps add
one that inits a timers and asserts it is not active?

Thanks!

Cheers,
Miguel