# EventChainLink

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/models/struct-eventchainlink/

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

```rust
struct EventChainLink
```

One link of the chain of a routed event: an object whose handlers saw the event, whether the
event was handled there and the route it took.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/models/event_chain_link.rs#L11)

## Members

- [`new`](#function-new)
- [`handler`](#function-handler)
- [`begins_new_route`](#function-begins_new_route)
- [`set_begins_new_route`](#function-set_begins_new_route)
- [`handler_name`](#function-handler_name)
- [`handled`](#function-handled)
- [`set_handled`](#function-set_handled)
- [`route`](#function-route)

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

### new

```rust
fn new(handler: BoxedValue, handled: bool, route: RoutingStrategies) -> Rc<Self>
```

C# `new EventChainLink(object handler, bool handled, RoutingStrategies route)`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/models/event_chain_link.rs#L26)

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

### handler

```rust
fn handler(self: &Self) -> BoxedValue
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/models/event_chain_link.rs#L30)

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

### begins_new_route

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/models/event_chain_link.rs#L34)

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

### set_begins_new_route

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/models/event_chain_link.rs#L38)

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

### handler_name

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

The name of the handler: its name and the name of its type (`name (Button)`) when it is
a named element (`INamed`) with a name, else the name of its type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/models/event_chain_link.rs#L44)

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

### handled

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/models/event_chain_link.rs#L67)

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

### set_handled

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/models/event_chain_link.rs#L71)

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

### route

```rust
fn route(self: &Self) -> RoutingStrategies
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/models/event_chain_link.rs#L75)

## 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`
- [`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/).
