Enum chromiumoxide::handler::domworld::DOMWorldKind
source · pub enum DOMWorldKind {
Main,
Secondary,
}
Expand description
There are two different kinds of worlds tracked for each Frame
, that
represent a context for JavaScript execution. A Page
might have many
execution contexts
- each iframe has a “default” execution context that is always created after the frame is attached to DOM. Extension’s content scripts create additional execution contexts.
Besides pages, execution contexts can be found in Web Workers.
Variants§
Main
The main world of a frame that represents the default execution context of a frame and is also created.
Secondary
Each frame gets its own isolated world with universal access
Trait Implementations§
source§impl Clone for DOMWorldKind
impl Clone for DOMWorldKind
source§fn clone(&self) -> DOMWorldKind
fn clone(&self) -> DOMWorldKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DOMWorldKind
impl Debug for DOMWorldKind
source§impl Default for DOMWorldKind
impl Default for DOMWorldKind
source§fn default() -> DOMWorldKind
fn default() -> DOMWorldKind
Returns the “default value” for a type. Read more
source§impl PartialEq for DOMWorldKind
impl PartialEq for DOMWorldKind
source§fn eq(&self, other: &DOMWorldKind) -> bool
fn eq(&self, other: &DOMWorldKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DOMWorldKind
impl Eq for DOMWorldKind
impl StructuralPartialEq for DOMWorldKind
Auto Trait Implementations§
impl Freeze for DOMWorldKind
impl RefUnwindSafe for DOMWorldKind
impl Send for DOMWorldKind
impl Sync for DOMWorldKind
impl Unpin for DOMWorldKind
impl UnwindSafe for DOMWorldKind
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