pub(crate) struct WebDriverEmbedderControls {
embedder_controls: RefCell<HashMap<WebViewId, Vec<EmbedderControl>>>,
}Fields§
§embedder_controls: RefCell<HashMap<WebViewId, Vec<EmbedderControl>>>Implementations§
Source§impl WebDriverEmbedderControls
impl WebDriverEmbedderControls
pub(crate) fn show_embedder_control( &self, webview_id: WebViewId, embedder_control: EmbedderControl, )
pub(crate) fn hide_embedder_control( &self, webview_id: WebViewId, embedder_control_id: EmbedderControlId, )
pub(crate) fn current_active_dialog_webdriver_type( &self, webview_id: WebViewId, ) -> Option<WebDriverUserPrompt>
Sourcepub(crate) fn respond_to_active_simple_dialog(
&self,
webview_id: WebViewId,
action: WebDriverUserPromptAction,
) -> Result<String, ()>
pub(crate) fn respond_to_active_simple_dialog( &self, webview_id: WebViewId, action: WebDriverUserPromptAction, ) -> Result<String, ()>
Respond to the most recently added dialog if it was a SimpleDialog and return
its message string or return an error if there is no active dialog or the most
recently added dialog is not a SimpleDialog.
pub(crate) fn message_of_newest_dialog( &self, webview_id: WebViewId, ) -> Option<String>
pub(crate) fn set_prompt_value_of_newest_dialog( &self, webview_id: WebViewId, text: String, )
Trait Implementations§
Source§impl Default for WebDriverEmbedderControls
impl Default for WebDriverEmbedderControls
Source§fn default() -> WebDriverEmbedderControls
fn default() -> WebDriverEmbedderControls
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for WebDriverEmbedderControls
impl !RefUnwindSafe for WebDriverEmbedderControls
impl Send for WebDriverEmbedderControls
impl !Sync for WebDriverEmbedderControls
impl Unpin for WebDriverEmbedderControls
impl UnwindSafe for WebDriverEmbedderControls
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert