pub struct AddScriptToEvaluateOnNewDocumentParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> AddScriptToEvaluateOnNewDocumentParamsBuilder<'a>
impl<'a> AddScriptToEvaluateOnNewDocumentParamsBuilder<'a>
Sourcepub fn world_name(self, world_name: impl Into<Cow<'a, str>>) -> Self
pub fn world_name(self, world_name: impl Into<Cow<'a, str>>) -> Self
If specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.
Sourcepub fn include_command_line_api(self, include_command_line_api: bool) -> Self
pub fn include_command_line_api(self, include_command_line_api: bool) -> Self
Specifies whether command line API should be available to the script, defaults to false.
Sourcepub fn run_immediately(self, run_immediately: bool) -> Self
pub fn run_immediately(self, run_immediately: bool) -> Self
If true, runs the script immediately on existing execution contexts or worlds. Default: false.
pub fn build(self) -> AddScriptToEvaluateOnNewDocumentParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for AddScriptToEvaluateOnNewDocumentParamsBuilder<'a>
impl<'a> RefUnwindSafe for AddScriptToEvaluateOnNewDocumentParamsBuilder<'a>
impl<'a> Send for AddScriptToEvaluateOnNewDocumentParamsBuilder<'a>
impl<'a> Sync for AddScriptToEvaluateOnNewDocumentParamsBuilder<'a>
impl<'a> Unpin for AddScriptToEvaluateOnNewDocumentParamsBuilder<'a>
impl<'a> UnsafeUnpin for AddScriptToEvaluateOnNewDocumentParamsBuilder<'a>
impl<'a> UnwindSafe for AddScriptToEvaluateOnNewDocumentParamsBuilder<'a>
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
Mutably borrows from an owned value. Read more