Enum
NavigationDecision
#[non_exhaustive]
pub enum NavigationDecision {
Default,
Allow,
Deny,
OpenExternal,
}The answer of App::on_navigation.
Variants
#Default
Kurogane’s policy decides. An origin the window may show is loaded. An
http or https link the user clicked to any other origin goes to
the system browser. Anything else is refused.
#Allow
Loads the page and lets its origin into this window from now on.
The page reaches only the commands and events that
App::permit and its kin grant its origin.
#Deny
Refuses the navigation; the window stays on its page.
#OpenExternal
Opens the URL in the system’s default browser instead. The window
stays on its page. Only an http or https link the user clicked
goes there; any other navigation is refused.
Trait implementations
impl Clone for NavigationDecisionimpl Copy for NavigationDecisionimpl Debug for NavigationDecisionimpl Default for NavigationDecisionimpl Eq for NavigationDecisionimpl PartialEq for NavigationDecision