pub struct ObservedWebViewState {
pub url: Option<String>,
pub title: Option<String>,
pub favicon_png: Option<Vec<u8>>,
pub can_go_back: bool,
pub can_go_forward: bool,
}Expand description
Fold of WebViewStateChange into the current observed state, including
the None-clears semantics, so all consumers interpret clearing the same
way.
Fields§
§url: Option<String>§title: Option<String>§favicon_png: Option<Vec<u8>>§can_go_back: bool§can_go_forward: boolImplementations§
Source§impl ObservedWebViewState
impl ObservedWebViewState
Sourcepub fn apply(&mut self, change: WebViewStateChange)
pub fn apply(&mut self, change: WebViewStateChange)
Fold one change into the state. Takes the change by value so owned payloads are retained without cloning.
Trait Implementations§
Source§impl Clone for ObservedWebViewState
impl Clone for ObservedWebViewState
Source§fn clone(&self) -> ObservedWebViewState
fn clone(&self) -> ObservedWebViewState
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 ObservedWebViewState
impl Debug for ObservedWebViewState
Source§impl Default for ObservedWebViewState
impl Default for ObservedWebViewState
Source§fn default() -> ObservedWebViewState
fn default() -> ObservedWebViewState
Returns the “default value” for a type. Read more
impl Eq for ObservedWebViewState
Source§impl PartialEq for ObservedWebViewState
impl PartialEq for ObservedWebViewState
impl StructuralPartialEq for ObservedWebViewState
Auto Trait Implementations§
impl Freeze for ObservedWebViewState
impl RefUnwindSafe for ObservedWebViewState
impl Send for ObservedWebViewState
impl Sync for ObservedWebViewState
impl Unpin for ObservedWebViewState
impl UnsafeUnpin for ObservedWebViewState
impl UnwindSafe for ObservedWebViewState
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