[−][src]Struct rusty_v8::SnapshotCreator
Helper class to create a snapshot data blob.
Methods
impl SnapshotCreator
[src]
pub fn new(external_references: Option<&'static ExternalReferences>) -> Self
[src]
Create and enter an isolate, and set it up for serialization. The isolate is created from scratch.
impl SnapshotCreator
[src]
pub fn set_default_context<'sc>(&mut self, context: Local<'sc, Context>)
[src]
Set the default context to be included in the snapshot blob. The snapshot will not contain the global proxy, and we expect one or a global object template to create one, to be provided upon deserialization.
pub fn create_blob(
&mut self,
function_code_handling: FunctionCodeHandling
) -> Option<StartupData>
[src]
&mut self,
function_code_handling: FunctionCodeHandling
) -> Option<StartupData>
Creates a snapshot data blob. This must not be called from within a handle scope.
pub fn get_isolate(&mut self) -> &Isolate
[src]
Returns the isolate prepared by the snapshot creator.
Trait Implementations
impl Drop for SnapshotCreator
[src]
Auto Trait Implementations
impl RefUnwindSafe for SnapshotCreator
impl Send for SnapshotCreator
impl Sync for SnapshotCreator
impl Unpin for SnapshotCreator
impl UnwindSafe for SnapshotCreator
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,
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.
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>,