ImplTaskRunner

Trait ImplTaskRunner 

Source
pub trait ImplTaskRunner:
    Clone
    + Sized
    + Rc {
    // Required methods
    fn is_same(&self, that: Option<&mut TaskRunner>) -> c_int;
    fn belongs_to_current_thread(&self) -> c_int;
    fn belongs_to_thread(&self, thread_id: ThreadId) -> c_int;
    fn post_task(&self, task: Option<&mut Task>) -> c_int;
    fn post_delayed_task(&self, task: Option<&mut Task>, delay_ms: i64) -> c_int;
    fn get_raw(&self) -> *mut _cef_task_runner_t;
}

Required Methods§

Source

fn is_same(&self, that: Option<&mut TaskRunner>) -> c_int

See _cef_task_runner_t::is_same for more documentation.

Source

fn belongs_to_current_thread(&self) -> c_int

Source

fn belongs_to_thread(&self, thread_id: ThreadId) -> c_int

See _cef_task_runner_t::belongs_to_thread for more documentation.

Source

fn post_task(&self, task: Option<&mut Task>) -> c_int

See _cef_task_runner_t::post_task for more documentation.

Source

fn post_delayed_task(&self, task: Option<&mut Task>, delay_ms: i64) -> c_int

See _cef_task_runner_t::post_delayed_task for more documentation.

Source

fn get_raw(&self) -> *mut _cef_task_runner_t

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§