Struct rxrust::subscription::SubscriptionGuard[][src]

pub struct SubscriptionGuard<T: SubscriptionLike>(_);
Expand description

An RAII implementation of a “scoped subscribed” of a subscription. When this structure is dropped (falls out of scope), the subscription will be unsubscribed.

Implements the [must_use]( https://doc.rust-lang.org/reference/attributes/diagnostics.html #the-must_use-attribute) attribute

If you want to drop it immediately, wrap it in its own scope

Implementations

Wraps an existing subscription with a guard to enable RAII behavior for it.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.