FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SequencerViewThreadInvoker

    struct · ferroui-reactiveui · v0.5.0

    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

    Members

    new

    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

    sequencer_for

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

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

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • IViewThreadInvoker
    • Debug

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.