pub enum NavigationPolicy {
Allow,
Cancel,
}Expand description
Navigation policy decision returned by the navigation handler.
Variants§
Allow
Allow the WebView to navigate to this URL.
Cancel
Cancel the navigation. The handler is responsible for any side effects
(e.g., opening the URL externally via AppRuntime::open_url()).
Trait Implementations§
Source§fn clone(&self) -> NavigationPolicy
fn clone(&self) -> NavigationPolicy
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§fn eq(&self, other: &NavigationPolicy) -> bool
fn eq(&self, other: &NavigationPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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