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§
pub enum SharedArrayBufferClonedOp {
None,
Some(unsafe extern "C" fn(*mut JSContext, bool, *mut c_void) -> bool),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*mut JSContext, 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.