Trait v8::ValueSerializerImpl
source · pub trait ValueSerializerImpl {
// Required method
fn throw_data_clone_error<'s>(
&self,
scope: &mut HandleScope<'s>,
message: Local<'s, String>,
);
// Provided methods
fn has_custom_host_object(&self, _isolate: &mut Isolate) -> bool { ... }
fn is_host_object<'s>(
&self,
scope: &mut HandleScope<'s>,
_object: Local<'s, Object>,
) -> Option<bool> { ... }
fn write_host_object<'s>(
&self,
scope: &mut HandleScope<'s>,
_object: Local<'s, Object>,
_value_serializer: &dyn ValueSerializerHelper,
) -> Option<bool> { ... }
fn get_shared_array_buffer_id<'s>(
&self,
_scope: &mut HandleScope<'s>,
_shared_array_buffer: Local<'s, SharedArrayBuffer>,
) -> Option<u32> { ... }
fn get_wasm_module_transfer_id(
&self,
scope: &mut HandleScope<'_>,
_module: Local<'_, WasmModuleObject>,
) -> Option<u32> { ... }
}
Expand description
The ValueSerializerImpl trait allows for custom callback functions used by v8.