TestSchedulerExtensions
trait · ferroui-reactiveui-testing · v0.5.0
trait TestSchedulerExtensions
The virtual time of a TestScheduler in milliseconds, and recorded notifications at a time in
milliseconds (TestSchedulerExtensions, from ReactiveUI.Testing.Reactive).
The functions without a scheduler are called on the type, as upstream's static extension
members are: TestScheduler::on_next_at(100.0, 42).
Not ported: the ArgumentException of a time that is not a number and the
OverflowException of one too large for a TimeSpan - argument validation (the conversion
saturates).
Members
from_time_span
fn from_time_span(span: Duration) -> i64
The ticks of the virtual time of a duration (FromTimeSpan).
on_next_at
fn on_next_at<T>(milliseconds: f64, value: T) -> Recorded<Notification<T>>
A value at a time in milliseconds (OnNextAt<T>(double, T)).
on_error_at
fn on_error_at<T>(milliseconds: f64, error: ObservableError) -> Recorded<Notification<T>>
An error at a time in milliseconds (OnErrorAt<T>(double, Exception)).
on_completed_at
fn on_completed_at<T>(milliseconds: f64) -> Recorded<Notification<T>>
The end of a sequence at a time in milliseconds (OnCompletedAt<T>(double)).
advance_to_ms
fn advance_to_ms(self: &Self, milliseconds: f64)
Runs the scheduler until its clock reaches the absolute time in milliseconds
(AdvanceToMs).
advance_by_ms
fn advance_by_ms(self: &Self, milliseconds: f64)
Runs the scheduler for a time in milliseconds (AdvanceByMs).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.