Struct v8::ValueSerializer
source · pub struct ValueSerializer<'a, 's> { /* private fields */ }
Implementations§
source§impl<'a, 's> ValueSerializer<'a, 's>
impl<'a, 's> ValueSerializer<'a, 's>
ValueSerializer is a stack object used as entry-point for an owned and pinned heap object ValueSerializerHeap. The ’a lifetime is the lifetime of the ValueSerializerImpl implementation. The ’s lifetime is the lifetime of the HandleScope which is used to retrieve a Local<’s, Context> for the CallbackScopes
pub fn new<D: ValueSerializerImpl + 'a>( scope: &mut HandleScope<'s>, value_serializer_impl: Box<D> ) -> Self
Trait Implementations§
source§impl<'a, 's> ValueSerializerHelper for ValueSerializer<'a, 's>
impl<'a, 's> ValueSerializerHelper for ValueSerializer<'a, 's>
fn get_cxx_value_serializer(&mut self) -> &mut CxxValueSerializer
fn write_header(&mut self)
fn write_value( &mut self, context: Local<'_, Context>, value: Local<'_, Value> ) -> Option<bool>
fn write_uint32(&mut self, value: u32)
fn write_uint64(&mut self, value: u64)
fn write_double(&mut self, value: f64)
fn write_raw_bytes(&mut self, source: &[u8])
fn transfer_array_buffer( &mut self, transfer_id: u32, array_buffer: Local<'_, ArrayBuffer> )
Auto Trait Implementations§
impl<'a, 's> !RefUnwindSafe for ValueSerializer<'a, 's>
impl<'a, 's> !Send for ValueSerializer<'a, 's>
impl<'a, 's> !Sync for ValueSerializer<'a, 's>
impl<'a, 's> Unpin for ValueSerializer<'a, 's>
impl<'a, 's> !UnwindSafe for ValueSerializer<'a, 's>
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