pub type JSWrapObjectCallback = Option<unsafe extern "C" fn(arg1: *mut JSContext, arg2: HandleObject, arg3: HandleObject) -> *mut JSObject>;Expand description
Callback used to ask the embedding for the cross compartment wrapper handler that implements the desired prolicy for this kind of object in the destination compartment. |obj| is the object to be wrapped. If |existing| is non-nullptr, it will point to an existing wrapper object that should be re-used if possible. |existing| is guaranteed to be a cross-compartment wrapper with a lazily-defined prototype and the correct global. It is guaranteed not to wrap a function.
Aliased Type§
pub enum JSWrapObjectCallback {
None,
Some(unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<*mut JSObject>) -> *mut JSObject),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, Handle<*mut JSObject>) -> *mut JSObject)
Some value of type T.
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.