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).
Members
Exact
Exact(ferroui_reactive::Notification<T>)
The notification itself.
OnNextWhere
OnNextWhere(std::rc::Rc<dyn Fn(&T) -> bool>)
A value for which the predicate is true (OnNext<T>(long, Func<T, bool>)).
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>)).
matches
fn matches(self: &Self, notification: &Notification<T>) -> bool
Whether the notification is the expected one.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.