# ViewThreadInvokers

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

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

```rust
struct ViewThreadInvokers
```

Finds the registered [`IViewThreadInvoker`](/docs/0.5.0/api/ferroui-reactiveui/binding/interfaces/trait-iviewthreadinvoker/) for the object a binding writes to
(`ViewThreadInvokers`).

The invokers are registered in `AppLocator` as `dyn IViewThreadInvoker`, read on first use and
kept until `refresh`.

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

## Members

- [`refresh`](#function-refresh)
- [`for_target`](#function-for_target)

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

### refresh

```rust
fn refresh()
```

Reads the registered invokers again on the next use, for a host that registers one after
its first binding (`Refresh`).

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

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

### for_target

```rust
fn for_target(target: Option<&Rc<dyn Any>>) -> Option<Rc<dyn IViewThreadInvoker>>
```

The first registered invoker that claims `target`, or `None` when `target` is `None` or
nothing claims it (`ForTarget`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`

## Availability

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