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§
Sourcefn is_same(&self, that: Option<&mut TaskRunner>) -> c_int
fn is_same(&self, that: Option<&mut TaskRunner>) -> c_int
See _cef_task_runner_t::is_same for more documentation.
Sourcefn belongs_to_current_thread(&self) -> c_int
fn belongs_to_current_thread(&self) -> c_int
See _cef_task_runner_t::belongs_to_current_thread for more documentation.
Sourcefn belongs_to_thread(&self, thread_id: ThreadId) -> c_int
fn belongs_to_thread(&self, thread_id: ThreadId) -> c_int
See _cef_task_runner_t::belongs_to_thread for more documentation.
Sourcefn post_task(&self, task: Option<&mut Task>) -> c_int
fn post_task(&self, task: Option<&mut Task>) -> c_int
See _cef_task_runner_t::post_task for more documentation.
Sourcefn post_delayed_task(&self, task: Option<&mut Task>, delay_ms: i64) -> c_int
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.
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.