pub type SharedArrayBufferClonedOp = Option<unsafe extern "C" fn(_: *mut JSContext, _: bool, _: *mut c_void) -> bool>;
Expand description
Called when a SharedArrayBuffer (including one owned by a Wasm memory object)
has been processed in context cx
by structured cloning. If receiving
is
true then the SAB has been received from a channel and a new SAB object has
been created; if false then an existing SAB has been serialized onto a
channel.
If the callback returns false then the clone operation (read or write) will signal a failure.
Aliased Type§
enum SharedArrayBufferClonedOp {
None,
Some(unsafe extern "C" fn(_: *mut JSContext, _: bool, _: *mut c_void) -> bool),
}