Trait libpulse_binding::mainloop::api::Mainloop
[−]
[src]
pub trait Mainloop { type MI: MainloopInnerType; fn inner(&self) -> Rc<Self::MI>; fn new_io_event(
&self,
fd: i32,
events: IoEventFlagSet,
cb: (IoEventCb, *mut c_void)
) -> Option<IoEvent<Self::MI>> { ... } fn new_timer_event(
&self,
tv: &timeval,
cb: (TimeEventCb, *mut c_void)
) -> Option<TimeEvent<Self::MI>> { ... } fn new_deferred_event(
&self,
cb: (DeferEventCb, *mut c_void)
) -> Option<DeferEvent<Self::MI>> { ... } fn set_api_userdata(&self, userdata: *mut c_void) { ... } fn get_api_userdata(&self) -> *mut c_void { ... } fn quit(&self, retval: i32) { ... } }
Associated Types
type MI: MainloopInnerType
Required Methods
Provided Methods
fn new_io_event(
&self,
fd: i32,
events: IoEventFlagSet,
cb: (IoEventCb, *mut c_void)
) -> Option<IoEvent<Self::MI>>
&self,
fd: i32,
events: IoEventFlagSet,
cb: (IoEventCb, *mut c_void)
) -> Option<IoEvent<Self::MI>>
Create a new IO event
fn new_timer_event(
&self,
tv: &timeval,
cb: (TimeEventCb, *mut c_void)
) -> Option<TimeEvent<Self::MI>>
&self,
tv: &timeval,
cb: (TimeEventCb, *mut c_void)
) -> Option<TimeEvent<Self::MI>>
Create a new timer event
fn new_deferred_event(
&self,
cb: (DeferEventCb, *mut c_void)
) -> Option<DeferEvent<Self::MI>>
&self,
cb: (DeferEventCb, *mut c_void)
) -> Option<DeferEvent<Self::MI>>
Create a new deferred event
fn set_api_userdata(&self, userdata: *mut c_void)
Set the userdata pointer held in the api vtable object
fn get_api_userdata(&self) -> *mut c_void
Get the userdata pointer held in the api vtable object
fn quit(&self, retval: i32)
Call quit
Implementors
impl Mainloop for libpulse_binding::mainloop::standard::Mainloop type MI = MainloopInner<MainloopInternal>;
impl Mainloop for libpulse_binding::mainloop::threaded::Mainloop type MI = MainloopInner<MainloopInternal>;