#[repr(u64)]pub enum SubscribeDoneStatusCode {
InternalError = 0,
Unauthorized = 1,
TrackEnded = 2,
SubscriptionEnded = 3,
GoingAway = 4,
Expired = 5,
TooFarBehind = 6,
}Expand description
SUBSCRIBE_DONE status codes (draft-10, Section 8.11 “SUBSCRIBE_DONE”).
The draft calls these status codes rather than error codes: a subscription that ends normally is also reported through this registry.
Variants§
InternalError = 0
Internal Error
Unauthorized
TrackEnded = 2
Track Ended
SubscriptionEnded = 3
Subscription Ended
GoingAway = 4
Going Away
Expired = 5
Expired
TooFarBehind = 6
Too Far Behind — the publisher MAY terminate the subscription with
this status if the subscriber exceeds the publisher’s resource limits by
failing to consume objects at a sufficient rate.
Implementations§
Source§impl SubscribeDoneStatusCode
impl SubscribeDoneStatusCode
Sourcepub const ALL: &[SubscribeDoneStatusCode]
pub const ALL: &[SubscribeDoneStatusCode]
Every SUBSCRIBE_DONE status code draft-10 assigns, in ascending wire order.
This is the set Self::from_u64 accepts, written out so that it can
be enumerated: nothing can iterate an enum’s variants, so a caller that
wants the registry has to be handed it. Writing it down is also what
lets a test state its claims about the registry itself rather than about
the range some sweep happens to reach.
Trait Implementations§
Source§impl Clone for SubscribeDoneStatusCode
impl Clone for SubscribeDoneStatusCode
Source§fn clone(&self) -> SubscribeDoneStatusCode
fn clone(&self) -> SubscribeDoneStatusCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more