#[repr(C)]pub struct _cef_v8_handler_t {
pub base: cef_base_ref_counted_t,
pub execute: Option<unsafe extern "C" fn(self_: *mut _cef_v8_handler_t, name: *const cef_string_t, object: *mut _cef_v8_value_t, argumentsCount: usize, arguments: *const *mut _cef_v8_value_t, retval: *mut *mut _cef_v8_value_t, exception: *mut cef_string_t) -> c_int>,
}Expand description
Structure that should be implemented to handle V8 function calls. The functions of this structure will be called on the thread associated with the V8 function.
NOTE: This struct is allocated client-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
execute: Option<unsafe extern "C" fn(self_: *mut _cef_v8_handler_t, name: *const cef_string_t, object: *mut _cef_v8_value_t, argumentsCount: usize, arguments: *const *mut _cef_v8_value_t, retval: *mut *mut _cef_v8_value_t, exception: *mut cef_string_t) -> c_int>Handle execution of the function identified by |name|. |object| is the receiver (‘this’ object) of the function. |arguments| is the list of arguments passed to the function. If execution succeeds set |retval| to the function return value. If execution fails set |exception| to the exception that will be thrown. Return true (1) if execution was handled.
Trait Implementations§
Source§impl Clone for _cef_v8_handler_t
impl Clone for _cef_v8_handler_t
Source§fn clone(&self) -> _cef_v8_handler_t
fn clone(&self) -> _cef_v8_handler_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_v8_handler_t
impl Debug for _cef_v8_handler_t
impl Copy for _cef_v8_handler_t
Auto Trait Implementations§
impl Freeze for _cef_v8_handler_t
impl RefUnwindSafe for _cef_v8_handler_t
impl Send for _cef_v8_handler_t
impl Sync for _cef_v8_handler_t
impl Unpin for _cef_v8_handler_t
impl UnwindSafe for _cef_v8_handler_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