# ReactiveTest

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive-testing/struct-reactivetest/

**struct** · [`ferroui-reactive-testing`](/docs/0.5.0/api/ferroui-reactive-testing/) · v0.5.0

```rust
struct ReactiveTest
```

The factories of recorded notifications and subscriptions, and the default times of
`TestScheduler::start` (`ReactiveTest`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L323)

## Members

- [`CREATED`](#assoc_const-created)
- [`SUBSCRIBED`](#assoc_const-subscribed)
- [`DISPOSED`](#assoc_const-disposed)
- [`on_next`](#function-on_next)
- [`on_next_where`](#function-on_next_where)
- [`on_completed`](#function-on_completed)
- [`on_error`](#function-on_error)
- [`on_error_where`](#function-on_error_where)
- [`subscribe`](#function-subscribe)
- [`subscribe_from`](#function-subscribe_from)

<a id="assoc_const-created"></a>

### CREATED

```rust
const CREATED: i64
```

The default time the sequence is created at (`Created`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L327)

<a id="assoc_const-subscribed"></a>

### SUBSCRIBED

```rust
const SUBSCRIBED: i64
```

The default time the observer subscribes at (`Subscribed`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L329)

<a id="assoc_const-disposed"></a>

### DISPOSED

```rust
const DISPOSED: i64
```

The default time the subscription is disposed at (`Disposed`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L331)

<a id="function-on_next"></a>

### on_next

```rust
fn on_next<T>(ticks: i64, value: T) -> Recorded<Notification<T>>
```

A value at `ticks` (`OnNext<T>(long, T)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L334)

<a id="function-on_next_where"></a>

### on_next_where

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L339)

<a id="function-on_completed"></a>

### on_completed

```rust
fn on_completed<T>(ticks: i64) -> Recorded<Notification<T>>
```

The end of the sequence at `ticks` (`OnCompleted<T>(long)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L344)

<a id="function-on_error"></a>

### on_error

```rust
fn on_error<T>(ticks: i64, error: ObservableError) -> Recorded<Notification<T>>
```

An error at `ticks` (`OnError<T>(long, Exception)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L349)

<a id="function-on_error_where"></a>

### on_error_where

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L354)

<a id="function-subscribe"></a>

### subscribe

```rust
fn subscribe(start: i64, end: i64) -> Subscription
```

A subscription from `start` to `end` (`Subscribe(long, long)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L359)

<a id="function-subscribe_from"></a>

### subscribe_from

```rust
fn subscribe_from(start: i64) -> Subscription
```

A subscription from `start` that has not been disposed (`Subscribe(long)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive.Testing/lib.rs#L364)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<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](/docs/0.5.0/api/).
