FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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).

    View source

    Members

    from_time_span

    fn from_time_span(span: Duration) -> i64
    

    The ticks of the virtual time of a duration (FromTimeSpan).

    Source

    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)).

    Source

    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)).

    Source

    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)).

    Source

    advance_to_ms

    fn advance_to_ms(self: &Self, milliseconds: f64)
    

    Runs the scheduler until its clock reaches the absolute time in milliseconds (AdvanceToMs).

    Source

    advance_by_ms

    fn advance_by_ms(self: &Self, milliseconds: f64)
    

    Runs the scheduler for a time in milliseconds (AdvanceByMs).

    Source

    Trait implementations

    Availability

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