# IViewThreadInvoker

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/interfaces/trait-iviewthreadinvoker/

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

```rust
trait IViewThreadInvoker
```

Runs the write of a binding on the thread that owns the object it lands on, through the
dispatcher of its platform (`IViewThreadInvoker`).

An invoker is registered in `AppLocator` as `dyn IViewThreadInvoker` and found through
`ViewThreadInvokers`. The objects are given as `Rc<dyn Any>`, so
that an invoker can downcast them to the types of its platform, or compare them by identity.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_view_thread_invoker.rs#L12)

## Members

- [`claims`](#function-claims)
- [`check_access`](#function-check_access)
- [`post`](#function-post)

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

### claims

```rust
fn claims(self: &Self, target: &Rc<dyn Any>) -> bool
```

Whether this invoker handles `target`, an object of its platform (`Claims`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_view_thread_invoker.rs#L14)

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

### check_access

```rust
fn check_access(self: &Self, target: &Rc<dyn Any>) -> bool
```

Whether the calling thread may write to `target`, an object this invoker claims, directly:
on the owning thread, or when the object has no owning thread (`CheckAccess`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_view_thread_invoker.rs#L18)

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

### post

```rust
fn post(self: &Self, target: &Rc<dyn Any>, callback: Box<dyn FnOnce() -> ()>)
```

Queues `callback` on the thread that owns `target`, an object this invoker claims
(`Post`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interfaces/i_view_thread_invoker.rs#L24)

## Trait implementations

- [`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/).
