pub struct TimeEvent<T>where
T: MainloopInnerType,{ /* private fields */ }
Expand description
A timer event source
Implementations§
Source§impl<T> TimeEvent<T>where
T: MainloopInnerType,
impl<T> TimeEvent<T>where
T: MainloopInnerType,
Sourcepub fn restart(&mut self, t: &UnixTs)
pub fn restart(&mut self, t: &UnixTs)
Restarts this timer event source (whether still running or already expired) with a new Unix time.
Sourcepub fn restart_rt(&mut self, t: MonotonicTs)
pub fn restart_rt(&mut self, t: MonotonicTs)
Restarts this timer event source (whether still running or already expired) with a new monotonic time.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TimeEvent<T>
impl<T> !RefUnwindSafe for TimeEvent<T>
impl<T> !Send for TimeEvent<T>
impl<T> !Sync for TimeEvent<T>
impl<T> Unpin for TimeEvent<T>
impl<T> !UnwindSafe for TimeEvent<T>
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