Struct rxrust::scheduler::TaskHandle
source · pub struct TaskHandle<T>(_);Implementations§
source§impl<T> TaskHandle<T>
impl<T> TaskHandle<T>
pub fn value_handle(v: T) -> Self
Trait Implementations§
source§impl<T: 'static> Subscription for TaskHandle<NormalReturn<T>>
impl<T: 'static> Subscription for TaskHandle<NormalReturn<T>>
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 moresource§impl<T: Subscription + 'static> Subscription for TaskHandle<SubscribeReturn<T>>
impl<T: Subscription + 'static> Subscription for TaskHandle<SubscribeReturn<T>>
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