# RefreshRequestedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/pull_to_refresh/struct-refreshrequestedeventargs/

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

```rust
struct RefreshRequestedEventArgs
```

Provides event data for RefreshRequested events.

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

## Members

- [`new`](#function-new)
- [`with_deferral`](#function-with_deferral)
- [`get_deferral`](#function-get_deferral)

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

### new

```rust
fn new<T: ?Sized>(deferred_action: impl Fn() -> () + 'static, routed_event: Option<&RoutedEvent<T>>) -> Self
```

Creates args whose deferral runs `deferred_action` once completed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_requested_event_args.rs#L17)

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

### with_deferral

```rust
fn with_deferral<T: ?Sized>(completion_deferral: Rc<RefreshCompletionDeferral>, routed_event: Option<&RoutedEvent<T>>) -> Self
```

Creates args that share an existing deferral.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_requested_event_args.rs#L22)

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

### get_deferral

```rust
fn get_deferral(self: &Self) -> Rc<RefreshCompletionDeferral>
```

Gets a deferral object for managing the work done in the
RefreshRequested event handler.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pull_to_refresh/refresh_requested_event_args.rs#L35)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `Clone`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)

## Availability

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