[−][src]Struct rusty_v8::CreateParams
Initial configuration parameters for a new Isolate.
Methods
impl CreateParams
[src]
pub fn new() -> UniqueRef<CreateParams>
[src]
pub fn set_array_buffer_allocator(&mut self, value: UniqueRef<Allocator>)
[src]
The ArrayBuffer::Allocator to use for allocating and freeing the backing store of ArrayBuffers.
If the shared_ptr version is used, the Isolate instance and every |BackingStore| allocated using this allocator hold a std::shared_ptr to the allocator, in order to facilitate lifetime management for the allocator instance.
pub fn set_external_references(
&mut self,
external_references: &'static ExternalReferences
)
[src]
&mut self,
external_references: &'static ExternalReferences
)
Specifies an optional nullptr-terminated array of raw addresses in the embedder that V8 can match against during serialization and use for deserialization. This array and its content must stay valid for the entire lifetime of the isolate.
pub fn set_snapshot_blob(&mut self, snapshot_blob: &StartupData)
[src]
Hand startup data to V8, in case the embedder has chosen to build V8 with external startup data.
Note:
- By default the startup data is linked into the V8 library, in which case this function is not meaningful.
- If this needs to be called, it needs to be called before V8 tries to make use of its built-ins.
- To avoid unnecessary copies of data, V8 will point directly into the given data blob, so pretty please keep it around until V8 exit.
- Compression of the startup blob might be useful, but needs to handled entirely on the embedders' side.
- The call will abort if the data is invalid.
Auto Trait Implementations
impl RefUnwindSafe for CreateParams
impl Send for CreateParams
impl Sync for CreateParams
impl Unpin for CreateParams
impl UnwindSafe for CreateParams
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>,