pub unsafe trait HrTimerHandle {
// Required method
fn cancel(&mut self) -> bool;
}
Expand description
A handle representing a potentially running timer.
More than one handle representing the same timer might exist.
§Safety
When dropped, the timer represented by this handle must be cancelled, if it is running. If the timer handler is running when the handle is dropped, the drop method must wait for the handler to return before returning.
Note: One way to satisfy the safety requirement is to call Self::cancel
in
the drop implementation for Self.