pub struct TimeEventRef<T>where
T: MainloopInnerType + 'static,{ /* private fields */ }
Expand description
A reference to a timer event source, provided to the callback, allowing modification within the callback itself.
Implementations§
Source§impl<T> TimeEventRef<T>where
T: MainloopInnerType,
impl<T> TimeEventRef<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.
Auto Trait Implementations§
impl<T> Freeze for TimeEventRef<T>
impl<T> RefUnwindSafe for TimeEventRef<T>where
T: RefUnwindSafe,
impl<T> !Send for TimeEventRef<T>
impl<T> !Sync for TimeEventRef<T>
impl<T> Unpin for TimeEventRef<T>
impl<T> UnwindSafe for TimeEventRef<T>where
T: RefUnwindSafe,
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