pub type CanTransferStructuredCloneOp = Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, *mut bool, *mut c_void) -> bool>;Expand description
Called when the transferring objects are checked. If this function returns false, the serialization ends throwing a DataCloneError exception.
Aliased Type§
pub enum CanTransferStructuredCloneOp {
None,
Some(unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, *mut bool, *mut c_void) -> bool),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut JSContext, Handle<*mut JSObject>, *mut bool, *mut c_void) -> bool)
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.