Struct rxrust::subscription::BoxSubscription
source · pub struct BoxSubscription<'a>(_);Implementations§
source§impl<'a> BoxSubscription<'a>
impl<'a> BoxSubscription<'a>
pub fn new(subscription: impl Subscription + 'a) -> Self
Trait Implementations§
source§impl<'a> Subscription for BoxSubscription<'a>
impl<'a> Subscription for BoxSubscription<'a>
source§fn unsubscribe(self)
fn unsubscribe(self)
This allows deregistering an stream before it has finished receiving all
events (i.e. before onCompleted is called).
source§fn unsubscribe_when_dropped(self) -> SubscriptionGuard<Self>where
Self: Sized,
fn unsubscribe_when_dropped(self) -> SubscriptionGuard<Self>where Self: Sized,
Activates “RAII” behavior for this subscription. That means
unsubscribe() will be called automatically as soon as the returned
value goes out of scope. Read more