pub struct CreateIsolatedWorldCommand { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime only.Expand description
Creates an isolated world for the given frame.
Implementations§
Source§impl CreateIsolatedWorldCommand
impl CreateIsolatedWorldCommand
pub fn new( frame_id: FrameId, world_name: Option<String>, grant_univeral_access: Option<bool>, ) -> Self
Sourcepub fn frame_id(&self) -> &FrameId
pub fn frame_id(&self) -> &FrameId
Id of the frame in which the isolated world should be created.
Sourcepub fn world_name(&self) -> Option<&String>
pub fn world_name(&self) -> Option<&String>
An optional name which is reported in the Execution Context.
Sourcepub fn grant_univeral_access(&self) -> Option<&bool>
pub fn grant_univeral_access(&self) -> Option<&bool>
Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.
Trait Implementations§
Source§impl Clone for CreateIsolatedWorldCommand
impl Clone for CreateIsolatedWorldCommand
Source§fn clone(&self) -> CreateIsolatedWorldCommand
fn clone(&self) -> CreateIsolatedWorldCommand
Returns a duplicate 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 Command for CreateIsolatedWorldCommand
impl Command for CreateIsolatedWorldCommand
Source§impl Debug for CreateIsolatedWorldCommand
impl Debug for CreateIsolatedWorldCommand
Source§impl<'de> Deserialize<'de> for CreateIsolatedWorldCommand
impl<'de> Deserialize<'de> for CreateIsolatedWorldCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateIsolatedWorldCommand
impl RefUnwindSafe for CreateIsolatedWorldCommand
impl Send for CreateIsolatedWorldCommand
impl Sync for CreateIsolatedWorldCommand
impl Unpin for CreateIsolatedWorldCommand
impl UnwindSafe for CreateIsolatedWorldCommand
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