pub enum Reason {
Deactivated,
Probation,
Rejected,
Timeout,
GiveUp,
NoResource,
Invariant,
BadFilter,
}Expand description
Why a subscription ended (RFC 6665 §4.1.3).
The distinction that matters to a subscriber is whether to try again, and these are not
interchangeable about it: deactivated says re-subscribe now, probation says wait,
rejected says do not, and noresource says there is nothing left to subscribe to.
Variants§
Deactivated
The subscription ended and the subscriber should re-subscribe immediately.
Probation
Ended for now; re-subscribe after retry-after.
Rejected
Refused by policy. Do not re-subscribe.
Timeout
The subscription simply expired.
GiveUp
The notifier could not continue, for a reason of its own.
NoResource
The resource being watched no longer exists.
Invariant
A subscription the notifier can no longer honour in the terms agreed.
BadFilter
The filter was not one the notifier could apply.
Implementations§
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
Blanket Implementations§
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