# RefreshCompletionDeferral

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

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

```rust
struct RefreshCompletionDeferral
```

Deferral class for notify that a work done in RefreshRequested event is
done.

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

## Members

- [`new`](#function-new)
- [`from_action`](#function-from_action)
- [`complete`](#function-complete)
- [`get`](#function-get)

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

### new

```rust
fn new(deferred_action: impl Fn() -> () + 'static) -> Rc<Self>
```

Creates a deferral that runs `deferred_action` when every deferral
taken with `get` has been completed.

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

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

### from_action

```rust
fn from_action(deferred_action: Option<Rc<dyn Fn() -> ()>>) -> Rc<Self>
```

Creates a deferral for an action that may be absent.

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

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

### complete

```rust
fn complete(self: &Self)
```



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

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

### get

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



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

## 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`
- `PartialEq`

## Availability

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