pub enum WebViewStateChange {
Location {
url: String,
},
Title {
title: Option<String>,
},
Favicon {
png_bytes: Option<Vec<u8>>,
},
BackForwardAvailability {
can_go_back: bool,
can_go_forward: bool,
},
}Expand description
Observable WebView state snapshots. Not lifecycle transitions: Location
alone is never evidence of a successful visit, and None explicitly
clears a previously reported title/favicon (empty strings and empty byte
arrays are not sentinels).
Variants§
Trait Implementations§
Source§impl Clone for WebViewStateChange
impl Clone for WebViewStateChange
Source§fn clone(&self) -> WebViewStateChange
fn clone(&self) -> WebViewStateChange
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 moreSource§impl Debug for WebViewStateChange
impl Debug for WebViewStateChange
impl Eq for WebViewStateChange
Source§impl PartialEq for WebViewStateChange
impl PartialEq for WebViewStateChange
impl StructuralPartialEq for WebViewStateChange
Auto Trait Implementations§
impl Freeze for WebViewStateChange
impl RefUnwindSafe for WebViewStateChange
impl Send for WebViewStateChange
impl Sync for WebViewStateChange
impl Unpin for WebViewStateChange
impl UnsafeUnpin for WebViewStateChange
impl UnwindSafe for WebViewStateChange
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