Enum cacao::webview::NavigationResponsePolicy
source · [−]pub enum NavigationResponsePolicy {
Cancel,
Allow,
BecomeDownload,
}
Available on crate feature
webview
only.Expand description
Describes a response policy for a given navigation.
Variants
Cancel
Should be canceled.
Allow
Allowed.
BecomeDownload
This is a private API, and likely won’t make it into the App Store. Will only be available
if you opt in via the webview-downloading
feature.
Trait Implementations
sourcefn clone(&self) -> NavigationResponsePolicy
fn clone(&self) -> NavigationResponsePolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourcefn from(policy: NavigationResponsePolicy) -> Self
fn from(policy: NavigationResponsePolicy) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more