# ControlledApplicationLifetimeExitEventArgs

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

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

```rust
struct ControlledApplicationLifetimeExitEventArgs
```

Contains the arguments for the exit event of a controlled application
lifetime.

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

## Members

- [`new`](#function-new)
- [`application_exit_code`](#function-application_exit_code)
- [`set_application_exit_code`](#function-set_application_exit_code)

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

### new

```rust
fn new(application_exit_code: i32) -> Self
```

Creates the arguments with the exit code of the application.

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

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

### application_exit_code

```rust
fn application_exit_code(self: &Self) -> i32
```

The exit code that should be returned to the operating system when
the application exits.

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

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

### set_application_exit_code

```rust
fn set_application_exit_code(self: &Self, value: i32)
```

Sets the exit code that should be returned to the operating system
when the application exits.

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

## Trait implementations

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

## Availability

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