Struct libpulse_binding::mainloop::events::timer::TimeEventRef
source · pub struct TimeEventRef<T: 'static>where
T: MainloopInnerType,{ /* private fields */ }
Expand description
A reference to a timer event source, provided to the callback, allowing modification within the callback itself
Implementations
sourceimpl<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)
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.
Auto Trait Implementations
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
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