Struct libpulse_binding::mainloop::events::timer::TimeEvent [−][src]
pub struct TimeEvent<T> where
T: MainloopInnerType, { /* fields omitted */ }
A timer event source object. This acts as a safe Rust wrapper for the actual C object.
Methods
impl<T> TimeEvent<T> where
T: MainloopInnerType,
[src]
impl<T> TimeEvent<T> where
T: MainloopInnerType,
pub fn restart(&mut self, tv: &Timeval)
[src]
pub fn restart(&mut self, tv: &Timeval)
Restart a running or expired timer event source with a new Unix time.
pub fn set_destroy(&mut self, cb: TimeEventDestroyCb)
[src]
pub fn set_destroy(&mut self, cb: TimeEventDestroyCb)
Set a function that is called when the timer event source is destroyed. Use this to free the userdata argument if required.
Trait Implementations
impl<T> Drop for TimeEvent<T> where
T: MainloopInnerType,
[src]
impl<T> Drop for TimeEvent<T> where
T: MainloopInnerType,