# SequencerViewThreadInvoker

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

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

```rust
struct SequencerViewThreadInvoker<T: 'static, S: IThreadAffineSequencer + ?Sized + 'static>
```

Routes the writes to a view object of type `T` through the scheduler that owns the object's
thread (`SequencerViewThreadInvoker<TTarget, TSequencer>`).

A platform supplies `sequencer_for`, which names the scheduler that owns an object. The
scheduler answers whether the calling thread owns it, and queues work onto that thread. An
object with no owning scheduler belongs to no thread, so every thread may write to it.

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

## Members

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

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

### new

```rust
fn new(sequencer_for: impl Fn(&T) -> Option<Rc<S>> + 'static) -> Self
```

The invoker of the objects of type `T`, whose owning scheduler `sequencer_for` names
(`None` for an object that belongs to no thread).

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

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

### sequencer_for

```rust
fn sequencer_for(self: &Self, target: &T) -> Option<Rc<S>>
```

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

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`IViewThreadInvoker`](/docs/0.5.0/api/ferroui-reactiveui/binding/interfaces/trait-iviewthreadinvoker/)
- `Debug`

## Availability

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