pub struct JavascriptDialogOpeningEventBuilder { /* private fields */ }
Available on crate features
Page
and Debugger
and DOM
and IO
and Network
and Runtime
only.Implementations§
Source§impl JavascriptDialogOpeningEventBuilder
impl JavascriptDialogOpeningEventBuilder
Sourcepub fn message(&mut self, v: String) -> &mut Self
pub fn message(&mut self, v: String) -> &mut Self
Message that will be displayed by the dialog.
Sourcepub fn type(&mut self, v: DialogType) -> &mut Self
pub fn type(&mut self, v: DialogType) -> &mut Self
Dialog type.
Sourcepub fn has_browser_handler(&mut self, v: bool) -> &mut Self
pub fn has_browser_handler(&mut self, v: bool) -> &mut Self
True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.
Sourcepub fn default_prompt(&mut self, v: String) -> &mut Self
pub fn default_prompt(&mut self, v: String) -> &mut Self
Default dialog prompt.
pub fn build(&mut self) -> Result<JavascriptDialogOpeningEvent, &'static str>
Trait Implementations§
Source§impl Clone for JavascriptDialogOpeningEventBuilder
impl Clone for JavascriptDialogOpeningEventBuilder
Source§fn clone(&self) -> JavascriptDialogOpeningEventBuilder
fn clone(&self) -> JavascriptDialogOpeningEventBuilder
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 JavascriptDialogOpeningEventBuilder
impl RefUnwindSafe for JavascriptDialogOpeningEventBuilder
impl Send for JavascriptDialogOpeningEventBuilder
impl Sync for JavascriptDialogOpeningEventBuilder
impl Unpin for JavascriptDialogOpeningEventBuilder
impl UnwindSafe for JavascriptDialogOpeningEventBuilder
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