Struct rxrust::subscription::SubscriptionWrapper [−][src]
pub struct SubscriptionWrapper<T: SubscriptionLike>(_);
Expand description
Wrapper around a subscription which provides the
unsubscribe_when_dropped()
method.
Implementations
Activates “RAII” behavior for this subscription. That means
unsubscribe()
will be called automatically as soon as the returned
value goes out of scope.
Attention: If you don’t assign the return value to a variable,
unsubscribe()
is called immediately, which is probably not what you
want!
Consumes this wrapper and returns the underlying subscription.