pub struct TimeEvent<T>where
T: MainloopInnerType,{ /* private fields */ }Expand description
A timer event source
Implementations
sourceimpl<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)
Restart 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)
Restart this timer event source (whether still running or already expired) with a new monotonic time.
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more