Struct rusty_v8::ValueDeserializer [−][src]
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
impl<'a, 's> ValueDeserializer<'a, 's>
[src]
pub fn new<D: ValueDeserializerImpl + 'a>(
scope: &mut HandleScope<'s>,
value_deserializer_impl: Box<D>,
data: &[u8]
) -> Self
[src]
scope: &mut HandleScope<'s>,
value_deserializer_impl: Box<D>,
data: &[u8]
) -> Self
impl<'a, 's> ValueDeserializer<'a, 's>
[src]
pub fn set_supports_legacy_wire_format(
&mut self,
supports_legacy_wire_format: bool
)
[src]
&mut self,
supports_legacy_wire_format: bool
)
pub fn read_value<'t>(
&mut self,
context: Local<'t, Context>
) -> Option<Local<'t, Value>>
[src]
&mut self,
context: Local<'t, Context>
) -> Option<Local<'t, Value>>
Trait Implementations
impl<'a, 's> ValueDeserializerHelper for ValueDeserializer<'a, 's>
[src]
fn get_cxx_value_deserializer(&mut self) -> &mut CxxValueDeserializer
[src]
fn read_header(&mut self, context: Local<'_, Context>) -> Option<bool>
[src]
fn read_value<'s>(
&mut self,
context: Local<'s, Context>
) -> Option<Local<'s, Value>>
[src]
&mut self,
context: Local<'s, Context>
) -> Option<Local<'s, Value>>
fn read_uint32(&mut self, value: &mut u32) -> bool
[src]
fn read_uint64(&mut self, value: &mut u64) -> bool
[src]
fn read_double(&mut self, value: &mut f64) -> bool
[src]
fn read_raw_bytes(&mut self, length: usize) -> Option<&[u8]>
[src]
fn transfer_array_buffer(
&mut self,
transfer_id: u32,
array_buffer: Local<'_, ArrayBuffer>
)
[src]
&mut self,
transfer_id: u32,
array_buffer: Local<'_, ArrayBuffer>
)
Auto Trait Implementations
impl<'a, 's> !RefUnwindSafe for ValueDeserializer<'a, 's>
impl<'a, 's> !Send for ValueDeserializer<'a, 's>
impl<'a, 's> !Sync for ValueDeserializer<'a, 's>
impl<'a, 's> Unpin for ValueDeserializer<'a, 's>
impl<'a, 's> !UnwindSafe for ValueDeserializer<'a, 's>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,