ValueDeserializerImpl

Trait ValueDeserializerImpl 

Source
pub trait ValueDeserializerImpl {
    // Provided methods
    fn read_host_object<'s>(
        &self,
        scope: &mut PinScope<'s, '_>,
        _value_deserializer: &dyn ValueDeserializerHelper,
    ) -> Option<Local<'s, Object>> { ... }
    fn get_shared_array_buffer_from_id<'s>(
        &self,
        scope: &mut PinScope<'s, '_>,
        _transfer_id: u32,
    ) -> Option<Local<'s, SharedArrayBuffer>> { ... }
    fn get_wasm_module_from_id<'s>(
        &self,
        scope: &mut PinScope<'s, '_>,
        _clone_id: u32,
    ) -> Option<Local<'s, WasmModuleObject>> { ... }
}
Expand description

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

Provided Methods§

Source

fn read_host_object<'s>( &self, scope: &mut PinScope<'s, '_>, _value_deserializer: &dyn ValueDeserializerHelper, ) -> Option<Local<'s, Object>>

Source

fn get_shared_array_buffer_from_id<'s>( &self, scope: &mut PinScope<'s, '_>, _transfer_id: u32, ) -> Option<Local<'s, SharedArrayBuffer>>

Source

fn get_wasm_module_from_id<'s>( &self, scope: &mut PinScope<'s, '_>, _clone_id: u32, ) -> Option<Local<'s, WasmModuleObject>>

Implementors§