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.