#[repr(C)]pub struct _cef_v8_accessor_t {
pub base: cef_base_ref_counted_t,
pub get: Option<unsafe extern "C" fn(self_: *mut _cef_v8_accessor_t, name: *const cef_string_t, object: *mut _cef_v8_value_t, retval: *mut *mut _cef_v8_value_t, exception: *mut cef_string_t) -> c_int>,
pub set: Option<unsafe extern "C" fn(self_: *mut _cef_v8_accessor_t, name: *const cef_string_t, object: *mut _cef_v8_value_t, value: *mut _cef_v8_value_t, exception: *mut cef_string_t) -> c_int>,
}Expand description
Structure that should be implemented to handle V8 accessor calls. Accessor identifiers are registered by calling cef_v8_value_t::set_value(). The functions of this structure will be called on the thread associated with the V8 accessor.
NOTE: This struct is allocated client-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
get: Option<unsafe extern "C" fn(self_: *mut _cef_v8_accessor_t, name: *const cef_string_t, object: *mut _cef_v8_value_t, retval: *mut *mut _cef_v8_value_t, exception: *mut cef_string_t) -> c_int>Handle retrieval the accessor value identified by |name|. |object| is the receiver (‘this’ object) of the accessor. If retrieval succeeds set |retval| to the return value. If retrieval fails set |exception| to the exception that will be thrown. Return true (1) if accessor retrieval was handled.
set: Option<unsafe extern "C" fn(self_: *mut _cef_v8_accessor_t, name: *const cef_string_t, object: *mut _cef_v8_value_t, value: *mut _cef_v8_value_t, exception: *mut cef_string_t) -> c_int>Handle assignment of the accessor value identified by |name|. |object| is the receiver (‘this’ object) of the accessor. |value| is the new value being assigned to the accessor. If assignment fails set |exception| to the exception that will be thrown. Return true (1) if accessor assignment was handled.
Trait Implementations§
Source§impl Clone for _cef_v8_accessor_t
impl Clone for _cef_v8_accessor_t
Source§fn clone(&self) -> _cef_v8_accessor_t
fn clone(&self) -> _cef_v8_accessor_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more