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).
Members
CREATEDSUBSCRIBEDDISPOSEDon_nexton_next_whereon_completedon_erroron_error_wheresubscribesubscribe_from
CREATED
const CREATED: i64
The default time the sequence is created at (Created).
SUBSCRIBED
const SUBSCRIBED: i64
The default time the observer subscribes at (Subscribed).
DISPOSED
const DISPOSED: i64
The default time the subscription is disposed at (Disposed).
on_next
fn on_next<T>(ticks: i64, value: T) -> Recorded<Notification<T>>
A value at ticks (OnNext<T>(long, T)).
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>)).
on_completed
fn on_completed<T>(ticks: i64) -> Recorded<Notification<T>>
The end of the sequence at ticks (OnCompleted<T>(long)).
on_error
fn on_error<T>(ticks: i64, error: ObservableError) -> Recorded<Notification<T>>
An error at ticks (OnError<T>(long, Exception)).
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>)).
subscribe
fn subscribe(start: i64, end: i64) -> Subscription
A subscription from start to end (Subscribe(long, long)).
subscribe_from
fn subscribe_from(start: i64) -> Subscription
A subscription from start that has not been disposed (Subscribe(long)).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<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.