#[repr(C)]pub struct ScriptEnvironmentPreparer {
pub vtable_: *const ScriptEnvironmentPreparer__bindgen_vtable,
}Expand description
PrepareScriptEnvironmentAndInvoke asserts the embedder has registered a ScriptEnvironmentPreparer and then it calls the preparer’s ‘invoke’ method with the given |closure|, with the assumption that the preparer will set up any state necessary to run script in |global|, invoke |closure| with a valid JSContext*, report any exceptions thrown from the closure, and return.
PrepareScriptEnvironmentAndInvoke will report any exceptions that are thrown by the closure. Consumers who want to propagate back whether the closure succeeded should do so via members of the closure itself.
Fields§
§vtable_: *const ScriptEnvironmentPreparer__bindgen_vtableTrait Implementations§
Source§impl Clone for ScriptEnvironmentPreparer
impl Clone for ScriptEnvironmentPreparer
Source§fn clone(&self) -> ScriptEnvironmentPreparer
fn clone(&self) -> ScriptEnvironmentPreparer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScriptEnvironmentPreparer
impl Debug for ScriptEnvironmentPreparer
impl Copy for ScriptEnvironmentPreparer
impl StructuralPartialEq for ScriptEnvironmentPreparer
Auto Trait Implementations§
impl Freeze for ScriptEnvironmentPreparer
impl RefUnwindSafe for ScriptEnvironmentPreparer
impl !Send for ScriptEnvironmentPreparer
impl !Sync for ScriptEnvironmentPreparer
impl Unpin for ScriptEnvironmentPreparer
impl UnwindSafe for ScriptEnvironmentPreparer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes