#[non_exhaustive]pub enum ManagedCOVSubscriptionEvent {
NotificationObserved {
time_remaining: u32,
renew_after: Duration,
},
ImpendingExpiry {
time_remaining: u32,
},
Renewed {
requested_lifetime: u32,
renew_after: Duration,
},
RenewalFailed {
error: String,
},
}Expand description
Events emitted by a managed finite COV subscription.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotificationObserved
A matching COV notification supplied a new lifetime observation.
Fields
ImpendingExpiry
The observed lifetime is inside the configured renewal margin.
Renewed
The helper successfully renewed the subscription.
Fields
RenewalFailed
A renewal SubscribeCOV request failed and the helper stopped.
Trait Implementations§
Source§impl Clone for ManagedCOVSubscriptionEvent
impl Clone for ManagedCOVSubscriptionEvent
Source§impl Debug for ManagedCOVSubscriptionEvent
impl Debug for ManagedCOVSubscriptionEvent
impl Eq for ManagedCOVSubscriptionEvent
impl StructuralPartialEq for ManagedCOVSubscriptionEvent
Auto Trait Implementations§
impl Freeze for ManagedCOVSubscriptionEvent
impl RefUnwindSafe for ManagedCOVSubscriptionEvent
impl Send for ManagedCOVSubscriptionEvent
impl Sync for ManagedCOVSubscriptionEvent
impl Unpin for ManagedCOVSubscriptionEvent
impl UnsafeUnpin for ManagedCOVSubscriptionEvent
impl UnwindSafe for ManagedCOVSubscriptionEvent
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