pub struct CreateIsolatedWorldBuilder { /* private fields */ }Expand description
Builder for CreateIsolatedWorld.
Implementations§
Source§impl CreateIsolatedWorldBuilder
impl CreateIsolatedWorldBuilder
Sourcepub fn frame_id<VALUE: Into<FrameId>>(&mut self, value: VALUE) -> &mut Self
pub fn frame_id<VALUE: Into<FrameId>>(&mut self, value: VALUE) -> &mut Self
Id of the frame in which the isolated world should be created.
Sourcepub fn world_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn world_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
An optional name which is reported in the Execution Context.
Sourcepub fn grant_univeral_access<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn grant_univeral_access<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution.
Sourcepub fn build(
&self,
) -> Result<CreateIsolatedWorld, CreateIsolatedWorldBuilderError>
pub fn build( &self, ) -> Result<CreateIsolatedWorld, CreateIsolatedWorldBuilderError>
Trait Implementations§
Source§impl Clone for CreateIsolatedWorldBuilder
impl Clone for CreateIsolatedWorldBuilder
Source§fn clone(&self) -> CreateIsolatedWorldBuilder
fn clone(&self) -> CreateIsolatedWorldBuilder
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 moreAuto Trait Implementations§
impl Freeze for CreateIsolatedWorldBuilder
impl RefUnwindSafe for CreateIsolatedWorldBuilder
impl Send for CreateIsolatedWorldBuilder
impl Sync for CreateIsolatedWorldBuilder
impl Unpin for CreateIsolatedWorldBuilder
impl UnsafeUnpin for CreateIsolatedWorldBuilder
impl UnwindSafe for CreateIsolatedWorldBuilder
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