# Enum `kurogane::NewWindowDecision`

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

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

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

## Variants

### `Default`

```rust
Default
```

Kurogane's policy decides. A page of the application's own origin
gets a window, an `http` or `https` link the user clicked goes to the
system browser and anything else is refused.

### `Allow`

```rust
Allow
```

Opens the page in an application window, whatever its origin. 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
```

Opens no window.

### `OpenExternal`

```rust
OpenExternal
```

Opens the URL in the system's default browser instead. Only an
`http` or `https` link the user clicked goes there; any other request
is refused.

## Trait implementations

- `impl Clone for NewWindowDecision`
- `impl Copy for NewWindowDecision`
- `impl Debug for NewWindowDecision`
- `impl Default for NewWindowDecision`
- `impl Eq for NewWindowDecision`
- `impl PartialEq for NewWindowDecision`

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