pub struct AddBindingParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> AddBindingParamsBuilder<'a>
impl<'a> AddBindingParamsBuilder<'a>
Sourcepub fn execution_context_id(
self,
execution_context_id: ExecutionContextId,
) -> Self
pub fn execution_context_id( self, execution_context_id: ExecutionContextId, ) -> Self
If specified, the binding would only be exposed to the specified execution context. If omitted and ‘executionContextName’ is not set, the binding is exposed to all execution contexts of the target. This parameter is mutually exclusive with ‘executionContextName’. Deprecated in favor of ‘executionContextName’ due to an unclear use case and bugs in implementation (crbug.com/1169639). ‘executionContextId’ will be removed in the future.
Sourcepub fn execution_context_name(
self,
execution_context_name: impl Into<Cow<'a, str>>,
) -> Self
pub fn execution_context_name( self, execution_context_name: impl Into<Cow<'a, str>>, ) -> Self
If specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added. See also ‘ExecutionContext.name’ and ‘worldName’ parameter to ‘Page.addScriptToEvaluateOnNewDocument’. This parameter is mutually exclusive with ‘executionContextId’.
pub fn build(self) -> AddBindingParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for AddBindingParamsBuilder<'a>
impl<'a> RefUnwindSafe for AddBindingParamsBuilder<'a>
impl<'a> Send for AddBindingParamsBuilder<'a>
impl<'a> Sync for AddBindingParamsBuilder<'a>
impl<'a> Unpin for AddBindingParamsBuilder<'a>
impl<'a> UnsafeUnpin for AddBindingParamsBuilder<'a>
impl<'a> UnwindSafe for AddBindingParamsBuilder<'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