Type Alias script::dom::bindings::import::module::jsapi::CanTransferStructuredCloneOp

source ·
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§

enum CanTransferStructuredCloneOp {
    None,
    Some(unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: *mut bool, _: *mut c_void) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut JSContext, _: Handle<*mut JSObject>, _: *mut bool, _: *mut c_void) -> bool)

Some value of type T.