Struct rusty_v8::ValueSerializer[][src]

pub struct ValueSerializer<'a, 's> { /* fields omitted */ }

Implementations

impl<'a, 's> ValueSerializer<'a, 's>[src]

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
[src]

impl<'a, 's> ValueSerializer<'a, 's>[src]

pub fn release(self) -> Vec<u8>[src]

pub fn write_value(
    &mut self,
    context: Local<'_, Context>,
    value: Local<'_, Value>
) -> Option<bool>
[src]

Trait Implementations

impl<'a, 's> ValueSerializerHelper for ValueSerializer<'a, 's>[src]

fn get_cxx_value_serializer(&mut self) -> &mut CxxValueSerializer[src]

fn write_header(&mut self)[src]

fn write_value(
    &mut self,
    context: Local<'_, Context>,
    value: Local<'_, Value>
) -> Option<bool>
[src]

fn write_uint32(&mut self, value: u32)[src]

fn write_uint64(&mut self, value: u64)[src]

fn write_double(&mut self, value: f64)[src]

fn write_raw_bytes(&mut self, source: &[u8])[src]

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.