Struct libpulse_binding::mainloop::events::io::IoEvent [−][src]
pub struct IoEvent<T> where
T: MainloopInnerType, { /* fields omitted */ }
An IO event source object. This acts as a safe Rust wrapper for the actual C object.
Methods
impl<T> IoEvent<T> where
T: MainloopInnerType,
[src]
impl<T> IoEvent<T> where
T: MainloopInnerType,
pub fn enable(&mut self, events: IoEventFlagSet)
[src]
pub fn enable(&mut self, events: IoEventFlagSet)
Enable or disable IO events on this object.
pub fn set_destroy(&mut self, cb: IoEventDestroyCb)
[src]
pub fn set_destroy(&mut self, cb: IoEventDestroyCb)
Set a function that is called when the IO event source is destroyed. Use this to free the userdata argument if required.
Trait Implementations
impl<T> Drop for IoEvent<T> where
T: MainloopInnerType,
[src]
impl<T> Drop for IoEvent<T> where
T: MainloopInnerType,