Trait libpulse_binding::mainloop::api::MainloopInnerType [−][src]
pub trait MainloopInnerType { type I: MainloopInternalType; fn get_ptr(&self) -> *mut Self::I; fn get_api(&self) -> &mut MainloopApi; }
This enables generic type enforcement with MainloopInner objects, and describes mandatory accessors for the internal pointers, allowing access to these pointers across the generic implementations to work.
Associated Types
type I: MainloopInternalType
Required Methods
fn get_ptr(&self) -> *mut Self::I
Return opaque main loop object pointer
fn get_api(&self) -> &mut MainloopApi
Return main loop API object pointer
Implementors
impl<T> MainloopInnerType for MainloopInner<T> where
T: MainloopInternalType, type I = T;