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]
T: MainloopInnerType,
pub fn restart(&mut self, tv: &timeval)
[src]
Restart a running or expired timer event source with a new Unix time.
pub fn set_destroy(&mut self, cb: TimeEventDestroyCb)
[src]
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]
T: MainloopInnerType,