pub trait ValueSerializerImpl {
// Required method
fn throw_data_clone_error<'s>(
&self,
scope: &mut PinScope<'s, '_>,
message: Local<'s, String>,
);
// Provided methods
fn has_custom_host_object(&self, _isolate: &Isolate) -> bool { ... }
fn is_host_object<'s>(
&self,
scope: &mut PinScope<'s, '_>,
_object: Local<'s, Object>,
) -> Option<bool> { ... }
fn write_host_object<'s>(
&self,
scope: &mut PinScope<'s, '_>,
_object: Local<'s, Object>,
_value_serializer: &dyn ValueSerializerHelper,
) -> Option<bool> { ... }
fn get_shared_array_buffer_id<'s>(
&self,
_scope: &mut PinScope<'s, '_>,
_shared_array_buffer: Local<'s, SharedArrayBuffer>,
) -> Option<u32> { ... }
fn get_wasm_module_transfer_id(
&self,
scope: &mut PinScope<'_, '_>,
_module: Local<'_, WasmModuleObject>,
) -> Option<u32> { ... }
}Expand description
The ValueSerializerImpl trait allows for custom callback functions used by v8.
Required Methods§
fn throw_data_clone_error<'s>( &self, scope: &mut PinScope<'s, '_>, message: Local<'s, String>, )
Provided Methods§
fn has_custom_host_object(&self, _isolate: &Isolate) -> bool
fn is_host_object<'s>( &self, scope: &mut PinScope<'s, '_>, _object: Local<'s, Object>, ) -> Option<bool>
fn write_host_object<'s>( &self, scope: &mut PinScope<'s, '_>, _object: Local<'s, Object>, _value_serializer: &dyn ValueSerializerHelper, ) -> Option<bool>
fn get_wasm_module_transfer_id( &self, scope: &mut PinScope<'_, '_>, _module: Local<'_, WasmModuleObject>, ) -> Option<u32>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".