# ProtocolActivatedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/application_lifetimes/struct-protocolactivatedeventargs/

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

```rust
struct ProtocolActivatedEventArgs
```

The arguments of an activation in which the application is passed a URI
to open. Convert them to
`ActivatedEventArgs` to raise the event.

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

## Members

- [`new`](#function-new)
- [`kind`](#function-kind)
- [`uri`](#function-uri)

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

### new

```rust
fn new(uri: Url) -> Self
```

Creates the arguments with the URI the application was activated
with.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/protocol_activated_event_args.rs#L15)

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

### kind

```rust
fn kind(self: &Self) -> ActivationKind
```

The kind of activation: `ActivationKind::OpenUri`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/protocol_activated_event_args.rs#L20)

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

### uri

```rust
fn uri(self: &Self) -> &Url
```

The URI the application was activated with.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/protocol_activated_event_args.rs#L25)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `From<ProtocolActivatedEventArgs>`
- `Clone`

## Availability

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