FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ReactiveTest

    struct · ferroui-reactive-testing · v0.5.0

    struct ReactiveTest
    

    The factories of recorded notifications and subscriptions, and the default times of TestScheduler::start (ReactiveTest).

    View source

    Members

    CREATED

    const CREATED: i64
    

    The default time the sequence is created at (Created).

    Source

    SUBSCRIBED

    const SUBSCRIBED: i64
    

    The default time the observer subscribes at (Subscribed).

    Source

    DISPOSED

    const DISPOSED: i64
    

    The default time the subscription is disposed at (Disposed).

    Source

    on_next

    fn on_next<T>(ticks: i64, value: T) -> Recorded<Notification<T>>
    

    A value at ticks (OnNext<T>(long, T)).

    Source

    on_next_where

    fn on_next_where<T>(ticks: i64, predicate: impl Fn(&T) -> bool + 'static) -> Recorded<Expected<T>>
    

    A value at ticks for which predicate is true (OnNext<T>(long, Func<T, bool>)).

    Source

    on_completed

    fn on_completed<T>(ticks: i64) -> Recorded<Notification<T>>
    

    The end of the sequence at ticks (OnCompleted<T>(long)).

    Source

    on_error

    fn on_error<T>(ticks: i64, error: ObservableError) -> Recorded<Notification<T>>
    

    An error at ticks (OnError<T>(long, Exception)).

    Source

    on_error_where

    fn on_error_where<T>(ticks: i64, predicate: impl Fn(&ObservableError) -> bool + 'static) -> Recorded<Expected<T>>
    

    An error at ticks for which predicate is true (OnError<T>(long, Func<Exception, bool>)).

    Source

    subscribe

    fn subscribe(start: i64, end: i64) -> Subscription
    

    A subscription from start to end (Subscribe(long, long)).

    Source

    subscribe_from

    fn subscribe_from(start: i64) -> Subscription
    

    A subscription from start that has not been disposed (Subscribe(long)).

    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.