Struct ppapi::ffi::Struct_PPB_MessageLoop_1_0Experimental [-]  [+] [src]

pub struct Struct_PPB_MessageLoop_1_0 {
    pub Create: Option< extern "C" fn(instance: PP_Instance) -> PP_Resource>,
    pub GetForMainThread: Option< extern "C" fn() -> PP_Resource>,
    pub GetCurrent: Option< extern "C" fn() -> PP_Resource>,
    pub AttachToCurrentThread: Option< extern "C" fn(message_loop: PP_Resource) -> int32_t>,
    pub Run: Option< extern "C" fn(message_loop: PP_Resource) -> int32_t>,
    pub PostWork: Option< extern "C" fn(message_loop: PP_Resource, callback: Struct_PP_CompletionCallback, delay_ms: int64_t) -> int32_t>,
    pub PostQuit: Option< extern "C" fn(message_loop: PP_Resource, should_destroy: PP_Bool) -> int32_t>,
}

Fields

Create
GetForMainThread
GetCurrent
AttachToCurrentThread
Run
PostWork
PostQuit

Trait Implementations

impl Default for Struct_PPB_MessageLoop_1_0

fn default() -> Struct_PPB_MessageLoop_1_0

impl MessageLoopIf for Struct_PPB_MessageLoop_1_0

fn create(&self, instance: &PP_Instance) -> PP_Resource

fn get_for_main_thread(&self) -> PP_Resource

fn get_current(&self) -> Option<PP_Resource>

fn attach_to_current_thread(&self, msg_loop: &PP_Resource) -> int32_t

fn run(&self, msg_loop: &PP_Resource) -> int32_t

fn post_work(&self, to_loop: &PP_Resource, callback: Struct_PP_CompletionCallback, delay_ms: int64_t) -> int32_t

fn post_quit(&self, msg_loop: &PP_Resource, full: bool) -> int32_t

Derived Implementations

impl Copy for Struct_PPB_MessageLoop_1_0