#[repr(C)]pub struct HrTimer<T> { /* private fields */ }
Expand description
A timer backed by a C struct hrtimer
.
§Invariants
self.timer
is initialized bybindings::hrtimer_setup
.
Implementations§
Source§impl<T> HrTimer<T>
impl<T> HrTimer<T>
Sourcepub fn new(mode: HrTimerMode, clock: ClockId) -> impl PinInit<Self>where
T: HrTimerCallback,
pub fn new(mode: HrTimerMode, clock: ClockId) -> impl PinInit<Self>where
T: HrTimerCallback,
Return an initializer for a new timer instance.
Trait Implementations§
impl<T> Send for HrTimer<T>
impl<T> Sync for HrTimer<T>
Auto Trait Implementations§
impl<T> !Freeze for HrTimer<T>
impl<T> !RefUnwindSafe for HrTimer<T>
impl<T> UnwindSafe for HrTimer<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more