pub enum WebViewEvent {
NavigationStarted {
url: String,
can_cancel: bool,
},
NavigationFinished {
url: String,
success: bool,
},
PageLoadStarted,
PageLoadFinished,
TitleChanged(String),
Message(String),
DownloadStarted {
url: String,
suggested_path: PathBuf,
},
DownloadFinished {
path: PathBuf,
success: bool,
},
ConsoleMessage {
level: ConsoleLevel,
text: String,
},
}Expand description
A browser lifecycle / JS→Rust event surfaced by a backend.
Variants§
A navigation is starting. can_cancel is true on backends that
support pre-navigation veto.
A navigation finished (or failed).
PageLoadStarted
The page began loading resources.
PageLoadFinished
The page finished loading.
TitleChanged(String)
The document title changed.
Message(String)
window.ipc.postMessage(payload) fired in the page.
DownloadStarted
A download began.
DownloadFinished
A download finished (or failed).
ConsoleMessage
A console message (forwarded in debug builds / by best-effort backends to report unsupported operations).
Trait Implementations§
Source§impl Clone for WebViewEvent
impl Clone for WebViewEvent
Source§fn clone(&self) -> WebViewEvent
fn clone(&self) -> WebViewEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebViewEvent
impl RefUnwindSafe for WebViewEvent
impl Send for WebViewEvent
impl Sync for WebViewEvent
impl Unpin for WebViewEvent
impl UnsafeUnpin for WebViewEvent
impl UnwindSafe for WebViewEvent
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