# Subscription

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

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

```rust
struct Subscription
```

A subscription to a test observable: the virtual times it was made and disposed
(`Subscription`).

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

## Members

- [`subscribe`](#struct_field-subscribe)
- [`unsubscribe`](#struct_field-unsubscribe)
- [`INFINITE`](#assoc_const-infinite)
- [`new`](#function-new)
- [`starting`](#function-starting)

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

### subscribe

```rust
subscribe: i64
```

The time of the subscription (`Subscribe`).

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

<a id="struct_field-unsubscribe"></a>

### unsubscribe

```rust
unsubscribe: i64
```

The time of its disposal; `Subscription::INFINITE` while it lasts (`Unsubscribe`).

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

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

### INFINITE

```rust
const INFINITE: i64
```

The time of a subscription that has not been disposed (`Infinite`).

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

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

### new

```rust
fn new(subscribe: i64, unsubscribe: i64) -> Self
```



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

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

### starting

```rust
fn starting(subscribe: i64) -> Self
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Copy`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Debug`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
