#[repr(C)]pub struct _cef_task_t {
pub base: cef_base_ref_counted_t,
pub execute: Option<unsafe extern "C" fn(self_: *mut _cef_task_t)>,
}Expand description
Implement this structure for asynchronous task execution. If the task is posted successfully and if the associated message loop is still running then the execute() function will be called on the target thread. If the task fails to post then the task object may be destroyed on the source thread instead of the target thread. For this reason be cautious when performing work in the task object destructor.
NOTE: This struct is allocated client-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
execute: Option<unsafe extern "C" fn(self_: *mut _cef_task_t)>Method that will be executed on the target thread.
Trait Implementations§
Source§impl Clone for _cef_task_t
impl Clone for _cef_task_t
Source§fn clone(&self) -> _cef_task_t
fn clone(&self) -> _cef_task_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for _cef_task_t
impl Debug for _cef_task_t
impl Copy for _cef_task_t
Auto Trait Implementations§
impl Freeze for _cef_task_t
impl RefUnwindSafe for _cef_task_t
impl Send for _cef_task_t
impl Sync for _cef_task_t
impl Unpin for _cef_task_t
impl UnwindSafe for _cef_task_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more