FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SubjectFactory

    struct · ferroui-reactive · v0.5.0

    struct SubjectFactory
    

    The factories of subjects (Subject static members).

    View source

    Members

    create

    fn create<TSource: 'static, TResult: 'static>(observer: Rc<dyn IObserver<TSource>>, observable: Rc<dyn IObservable<TResult>>) -> Rc<dyn ISubjectHandle<TSource, TResult>>
    

    A subject whose observer side is observer and whose observable side is observable (Subject.Create<TSource, TResult>).

    Source

    synchronize

    fn synchronize<TSource: 'static, TResult: 'static>(subject: Rc<dyn ISubjectHandle<TSource, TResult>>) -> Rc<dyn ISubjectHandle<TSource, TResult>>
    

    The subject itself (Subject.Synchronize): notifications on one thread are serialized already.

    Source

    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.