pub struct ReactiveTest;Expand description
The factories of recorded notifications and subscriptions, and the default times of
TestScheduler::start (ReactiveTest).
Implementations§
Source§impl ReactiveTest
impl ReactiveTest
Sourcepub const SUBSCRIBED: i64 = 200
pub const SUBSCRIBED: i64 = 200
The default time the observer subscribes at (Subscribed).
Sourcepub fn on_next<T>(ticks: i64, value: T) -> Recorded<Notification<T>>
pub fn on_next<T>(ticks: i64, value: T) -> Recorded<Notification<T>>
A value at ticks (OnNext<T>(long, T)).
Sourcepub fn on_next_where<T>(
ticks: i64,
predicate: impl Fn(&T) -> bool + 'static,
) -> Recorded<Expected<T>>
pub 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>)).
Sourcepub fn on_completed<T>(ticks: i64) -> Recorded<Notification<T>>
pub fn on_completed<T>(ticks: i64) -> Recorded<Notification<T>>
The end of the sequence at ticks (OnCompleted<T>(long)).
Sourcepub fn on_error<T>(
ticks: i64,
error: ObservableError,
) -> Recorded<Notification<T>>
pub fn on_error<T>( ticks: i64, error: ObservableError, ) -> Recorded<Notification<T>>
An error at ticks (OnError<T>(long, Exception)).
Sourcepub fn on_error_where<T>(
ticks: i64,
predicate: impl Fn(&ObservableError) -> bool + 'static,
) -> Recorded<Expected<T>>
pub 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>)).
Sourcepub fn subscribe(start: i64, end: i64) -> Subscription
pub fn subscribe(start: i64, end: i64) -> Subscription
A subscription from start to end (Subscribe(long, long)).
Sourcepub fn subscribe_from(start: i64) -> Subscription
pub fn subscribe_from(start: i64) -> Subscription
A subscription from start that has not been disposed (Subscribe(long)).
Auto Trait Implementations§
impl Freeze for ReactiveTest
impl RefUnwindSafe for ReactiveTest
impl Send for ReactiveTest
impl Sync for ReactiveTest
impl Unpin for ReactiveTest
impl UnsafeUnpin for ReactiveTest
impl UnwindSafe for ReactiveTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more