pub struct ManagedCOVSubscription { /* private fields */ }Expand description
Handle for a managed finite COV subscription renewal task.
Implementations§
Source§impl ManagedCOVSubscription
impl ManagedCOVSubscription
Sourcepub fn events(&self) -> Receiver<ManagedCOVSubscriptionEvent>
pub fn events(&self) -> Receiver<ManagedCOVSubscriptionEvent>
Subscribe to lifetime observations and renewal outcomes.
Sourcepub fn last_event(&self) -> Option<ManagedCOVSubscriptionEvent>
pub fn last_event(&self) -> Option<ManagedCOVSubscriptionEvent>
Return the latest observed renewal event, if any.
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Return whether the renewal task has already finished.
Trait Implementations§
Source§impl Drop for ManagedCOVSubscription
impl Drop for ManagedCOVSubscription
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedCOVSubscription
impl !UnwindSafe for ManagedCOVSubscription
impl Freeze for ManagedCOVSubscription
impl Send for ManagedCOVSubscription
impl Sync for ManagedCOVSubscription
impl Unpin for ManagedCOVSubscription
impl UnsafeUnpin for ManagedCOVSubscription
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more