# Enum `kurogane::NavigationDecision`

```rust
#[non_exhaustive]
pub enum NavigationDecision {
    Default,
    Allow,
    Deny,
    OpenExternal,
}
```

The answer of [`App::on_navigation`](https://kurogane-rs.org/docs/api/app/app.md#method.on_navigation).

[crate::App::on_navigation]: https://kurogane-rs.org/docs/api/app/app.md#method.on_navigation

## Variants

### `Default`

```rust
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`

```rust
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`](https://kurogane-rs.org/docs/api/app/app.md#method.permit) and its kin grant its origin.

[crate::App::permit]: https://kurogane-rs.org/docs/api/app/app.md#method.permit

### `Deny`

```rust
Deny
```

Refuses the navigation; the window stays on its page.

### `OpenExternal`

```rust
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 NavigationDecision`
- `impl Copy for NavigationDecision`
- `impl Debug for NavigationDecision`
- `impl Default for NavigationDecision`
- `impl Eq for NavigationDecision`
- `impl PartialEq for NavigationDecision`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/navigation.rs#L80
