# TriggerUpdate

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/bindings/enum-triggerupdate/

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

```rust
enum TriggerUpdate
```

The direction driven by the update stream of a binding (`TriggerUpdate`), for
`bind_with_trigger`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/trigger_update.rs#L6)

## Members

- [`ViewToViewModel`](#variant-viewtoviewmodel)
- [`ViewModelToView`](#variant-viewmodeltoview)

<a id="variant-viewtoviewmodel"></a>

### ViewToViewModel

```rust
ViewToViewModel = 0
```

The stream replaces the notifications of the view and requests writes to the view model
(`ViewToViewModel`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/trigger_update.rs#L10)

<a id="variant-viewmodeltoview"></a>

### ViewModelToView

```rust
ViewModelToView = 1
```

The stream requests writes to the view in place of the notifications of the view model
after the first; the notifications of the view are still observed (`ViewModelToView`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/trigger_update.rs#L13)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Debug`
- `Default`
- `Clone`
- `Copy`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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