v8

Struct ValueDeserializer

Source
pub struct ValueDeserializer<'a> { /* private fields */ }
Expand description

ValueDeserializer is a stack object used as entry-point for an owned and pinned heap object ValueDeserializerHeap. The ’a lifetime is the lifetime of the ValueDeserializerImpl implementation. The ’s lifetime is the lifetime of the HandleScope which is used to retrieve a Local<’s, Context> for the CallbackScopes

Implementations§

Source§

impl<'a> ValueDeserializer<'a>

Source

pub fn new<D: ValueDeserializerImpl + 'a>( scope: &mut HandleScope<'_>, value_deserializer_impl: Box<D>, data: &[u8], ) -> Self

Source§

impl<'a> ValueDeserializer<'a>

Source

pub fn set_supports_legacy_wire_format(&self, supports_legacy_wire_format: bool)

Source

pub fn read_value<'t>( &self, context: Local<'t, Context>, ) -> Option<Local<'t, Value>>

Trait Implementations§

Source§

impl<'a> ValueDeserializerHelper for ValueDeserializer<'a>

Source§

fn get_cxx_value_deserializer(&self) -> &CxxValueDeserializer

Source§

fn read_header(&self, context: Local<'_, Context>) -> Option<bool>

Source§

fn read_value<'s>( &self, context: Local<'s, Context>, ) -> Option<Local<'s, Value>>

Source§

fn read_uint32(&self, value: &mut u32) -> bool

Source§

fn read_uint64(&self, value: &mut u64) -> bool

Source§

fn read_double(&self, value: &mut f64) -> bool

Source§

fn read_raw_bytes(&self, length: usize) -> Option<&[u8]>

Source§

fn transfer_array_buffer( &self, transfer_id: u32, array_buffer: Local<'_, ArrayBuffer>, )

Source§

fn transfer_shared_array_buffer( &self, transfer_id: u32, shared_array_buffer: Local<'_, SharedArrayBuffer>, )

Source§

fn get_wire_format_version(&self) -> u32

Auto Trait Implementations§

§

impl<'a> Freeze for ValueDeserializer<'a>

§

impl<'a> !RefUnwindSafe for ValueDeserializer<'a>

§

impl<'a> !Send for ValueDeserializer<'a>

§

impl<'a> !Sync for ValueDeserializer<'a>

§

impl<'a> Unpin for ValueDeserializer<'a>

§

impl<'a> !UnwindSafe for ValueDeserializer<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.