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,
fn from_raw(ptr: *mut TimeEventInternal, mainloop_inner: Rc<T>) -> Self
[src]
fn get_ptr(&self) -> *mut TimeEventInternal
[src]
Needed to support
::context::Context::rttime_restart
.
fn restart(&self, tv: &timeval)
[src]
Restart a running or expired timer event source with a new Unix time.
fn set_destroy(&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,