# FerroViewThreadInvoker

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui-controls/struct-ferroviewthreadinvoker/

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

```rust
struct FerroViewThreadInvoker
```

Routes the writes of the bindings to a FerroUI object onto the [`FerroScheduler`](/docs/0.5.0/api/ferroui-reactiveui-controls/struct-ferroscheduler/) of the
dispatcher that owns it (`FerroViewThreadInvoker`).

Deviation (DEVIATIONS.md, ReactiveUI controls): upstream derives from
`SequencerViewThreadInvoker<FerroObject, FerroScheduler>`, which claims the targets of the
type `FerroObject`; a FerroUI object comes in several untyped forms
(`FerroObjectHandles::object_of`), so the invoker implements the trait itself, with the same
members: the scheduler of a target is `FerroScheduler::for_dispatcher` of its dispatcher. The
shared instance is per thread, as the objects are.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_view_thread_invoker.rs#L26)

## Members

- [`instance`](#function-instance)
- [`sequencer_for`](#function-sequencer_for)

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

### instance

```rust
fn instance() -> Rc<FerroViewThreadInvoker>
```

The shared instance, which the bindings route their writes to FerroUI objects through
(`Instance`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_view_thread_invoker.rs#L31)

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

### sequencer_for

```rust
fn sequencer_for(target: &FerroObject) -> Rc<FerroScheduler>
```

The scheduler of the dispatcher that owns `target` (`SequencerFor`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_view_thread_invoker.rs#L36)

## 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`
- `Default`
- [`IViewThreadInvoker`](/docs/0.5.0/api/ferroui-reactiveui/binding/interfaces/trait-iviewthreadinvoker/)

## Availability

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