FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Expected

    enum · ferroui-reactive-testing · v0.5.0

    enum Expected<T>
    

    A notification a test expects: one notification, or a notification that satisfies a predicate (the predicate forms of ReactiveTest.OnNext and OnError).

    View source

    Members

    Exact

    Exact(ferroui_reactive::Notification<T>)
    

    The notification itself.

    Source

    OnNextWhere

    OnNextWhere(std::rc::Rc<dyn Fn(&T) -> bool>)
    

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

    Source

    OnErrorWhere

    OnErrorWhere(std::rc::Rc<dyn Fn(&ferroui_reactive::ObservableError) -> bool>)
    

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

    Source

    matches

    fn matches(self: &Self, notification: &Notification<T>) -> bool
    

    Whether the notification is the expected one.

    Source

    Trait implementations

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

    Availability

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