# FiredEvent

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/struct-firedevent/

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

```rust
struct FiredEvent
```

A routed event recorded by the events page: the event, when it was
raised, and the chain of the elements it visited.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L49)

## Members

- [`new`](#function-new)
- [`is_part_of_same_event_chain`](#function-is_part_of_same_event_chain)
- [`trigger_time`](#function-trigger_time)
- [`event`](#function-event)
- [`is_handled`](#function-is_handled)
- [`event_chain`](#function-event_chain)
- [`display_text`](#function-display_text)
- [`originator`](#function-originator)
- [`handled_by`](#function-handled_by)
- [`set_handled_by`](#function-set_handled_by)
- [`add_to_chain`](#function-add_to_chain)

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

### new

```rust
fn new(event_args: &RoutedEventArgs, originator: Rc<EventChainLink>, trigger_time: SystemTime) -> Rc<Self>
```

C# `new FiredEvent(RoutedEventArgs eventArgs, EventChainLink originator, DateTime triggerTime)`:
the event of `event_args`, with `originator` as the first link of its
chain, raised at the instant `trigger_time`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L76)

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

### is_part_of_same_event_chain

```rust
fn is_part_of_same_event_chain(self: &Self, e: &RoutedEventArgs) -> bool
```

Whether `e` are the args of the same raise of the same event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L91)

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

### trigger_time

```rust
fn trigger_time(self: &Self) -> SystemTime
```

The instant the event was raised.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L98)

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

### event

```rust
fn event(self: &Self) -> RoutedEvent
```

The routed event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L109)

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

### is_handled

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

Whether an element on the route handled the event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L114)

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

### event_chain

```rust
fn event_chain(self: &Self) -> FerroList<Rc<EventChainLink>>
```

The elements the event visited, in order.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L119)

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

### display_text

```rust
fn display_text(self: &Self) -> String
```

The description of the event: its name, its source, its routing
strategies and what handled it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L125)

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

### originator

```rust
fn originator(self: &Self) -> Rc<EventChainLink>
```

The first link of the chain: the source of the event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L147)

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

### handled_by

```rust
fn handled_by(self: &Self) -> Option<Rc<EventChainLink>>
```

The link of the element that handled the event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L152)

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

### set_handled_by

```rust
fn set_handled_by(self: &Self, value: Option<Rc<EventChainLink>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L156)

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

### add_to_chain

```rust
fn add_to_chain(self: &Self, link: Rc<EventChainLink>)
```

Adds the link of the next element the event visited; a link whose
route differs from the route of the previous link begins a new route.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/fired_event.rs#L168)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `PartialEq`
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)
- [`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/).
