# NavigationFailedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/navigation/struct-navigationfailedeventargs/

**struct** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
struct NavigationFailedEventArgs
```

The arguments of `Frame.NavigationFailed` (WinUI's `NavigationFailedEventArgs`). Clones share
`Handled`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L264)

## Members

- [`handled`](#function-handled)
- [`set_handled`](#function-set_handled)
- [`source_page_type`](#function-source_page_type)
- [`exception`](#function-exception)

<a id="function-handled"></a>

### handled

```rust
fn handled(self: &Self) -> bool
```

Gets whether a handler handled the failure.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L282)

<a id="function-set_handled"></a>

### set_handled

```rust
fn set_handled(self: &Self, value: bool)
```

Marks the failure handled: `Frame::navigate` then returns `Ok(false)` instead of the error.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L287)

<a id="function-source_page_type"></a>

### source_page_type

```rust
fn source_page_type(self: &Self) -> PageType
```

Gets the type of the page the navigation failed to show.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L292)

<a id="function-exception"></a>

### exception

```rust
fn exception(self: &Self) -> &NavigationError
```

Gets the error (WinUI's `Exception`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L297)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
