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>
impl<'a> ValueDeserializer<'a>
pub fn new<D: ValueDeserializerImpl + 'a>( scope: &mut HandleScope<'_>, value_deserializer_impl: Box<D>, data: &[u8], ) -> Self
Source§impl<'a> ValueDeserializer<'a>
impl<'a> ValueDeserializer<'a>
pub fn set_supports_legacy_wire_format(&self, supports_legacy_wire_format: bool)
pub fn read_value<'t>( &self, context: Local<'t, Context>, ) -> Option<Local<'t, Value>>
Trait Implementations§
Source§impl<'a> ValueDeserializerHelper for ValueDeserializer<'a>
impl<'a> ValueDeserializerHelper for ValueDeserializer<'a>
fn get_cxx_value_deserializer(&self) -> &CxxValueDeserializer
fn read_header(&self, context: Local<'_, Context>) -> Option<bool>
fn read_value<'s>( &self, context: Local<'s, Context>, ) -> Option<Local<'s, Value>>
fn read_uint32(&self, value: &mut u32) -> bool
fn read_uint64(&self, value: &mut u64) -> bool
fn read_double(&self, value: &mut f64) -> bool
fn read_raw_bytes(&self, length: usize) -> Option<&[u8]>
fn transfer_array_buffer( &self, transfer_id: u32, array_buffer: Local<'_, ArrayBuffer>, )
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more