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.

Trait Implementations

This allows deregistering an stream before it has finished receiving all events (i.e. before onCompleted is called). 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.