pub trait ValueSerializerImpl {
    // Required method
    fn throw_data_clone_error<'s>(
        &mut self,
        scope: &mut HandleScope<'s>,
        message: Local<'s, String>
    );

    // Provided methods
    fn write_host_object<'s>(
        &mut self,
        scope: &mut HandleScope<'s>,
        _object: Local<'s, Object>,
        _value_serializer: &mut dyn ValueSerializerHelper
    ) -> Option<bool> { ... }
    fn get_shared_array_buffer_id<'s>(
        &mut self,
        scope: &mut HandleScope<'s>,
        _shared_array_buffer: Local<'s, SharedArrayBuffer>
    ) -> Option<u32> { ... }
    fn get_wasm_module_transfer_id(
        &mut self,
        scope: &mut HandleScope<'_>,
        _module: Local<'_, WasmModuleObject>
    ) -> Option<u32> { ... }
}
Expand description

The ValueSerializerImpl trait allows for custom callback functions used by v8.

Required Methods§

source

fn throw_data_clone_error<'s>( &mut self, scope: &mut HandleScope<'s>, message: Local<'s, String> )

Provided Methods§

source

fn write_host_object<'s>( &mut self, scope: &mut HandleScope<'s>, _object: Local<'s, Object>, _value_serializer: &mut dyn ValueSerializerHelper ) -> Option<bool>

source

fn get_shared_array_buffer_id<'s>( &mut self, scope: &mut HandleScope<'s>, _shared_array_buffer: Local<'s, SharedArrayBuffer> ) -> Option<u32>

source

fn get_wasm_module_transfer_id( &mut self, scope: &mut HandleScope<'_>, _module: Local<'_, WasmModuleObject> ) -> Option<u32>

Implementors§