#[non_exhaustive]pub enum WebViewControl {
Alert {
message: String,
},
Confirm {
message: String,
},
Prompt {
message: String,
default: String,
},
Select {
options: Vec<WebViewSelectOption>,
selected: Option<usize>,
area: Rect,
},
}Expand description
A dialog or picker a page opened. Its text is the page’s, so a presenter shows it in a way that cannot be mistaken for the application’s own UI.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Alert
alert(message): acknowledged with WebViewControlAnswer::Confirmed.
Confirm
confirm(message): WebViewControlAnswer::Confirmed or
WebViewControlAnswer::Dismissed.
Prompt
prompt(message, default): WebViewControlAnswer::Text or
WebViewControlAnswer::Dismissed.
Select
A <select>’s list, opened at area (window-logical): answered with
WebViewControlAnswer::Selected.
Trait Implementations§
Source§impl Clone for WebViewControl
impl Clone for WebViewControl
Source§impl Debug for WebViewControl
impl Debug for WebViewControl
Source§impl PartialEq for WebViewControl
impl PartialEq for WebViewControl
impl StructuralPartialEq for WebViewControl
Auto Trait Implementations§
impl Forget for WebViewControl
impl Freeze for WebViewControl
impl Move for WebViewControl
impl RefUnwindSafe for WebViewControl
impl Send for WebViewControl
impl Sync for WebViewControl
impl Unpin for WebViewControl
impl UnsafeUnpin for WebViewControl
impl UnwindSafe for WebViewControl
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