#[repr(u64)]pub enum SubscribeDoneStatusCode {
Unsubscribed = 0,
InternalError = 1,
Unauthorized = 2,
TrackEnded = 3,
SubscriptionEnded = 4,
GoingAway = 5,
Expired = 6,
}Expand description
SUBSCRIBE_DONE status codes, from draft-07 section 5.1 “Subscriber Interactions” (Table 3).
The draft introduces the table with: “The application SHOULD use a relevant status code in SUBSCRIBE_DONE, as defined below”. These codes report why a publisher ended a subscription; they are not all failures. Section 6.19 describes the field only as “an integer status code indicating why the subscription ended”.
The Reason text is the whole of what draft-07 says about these seven codes: each of the strings below occurs exactly once in the document, in the table. Reason-only docs here are the complete record, not a truncation.
Variants§
Unsubscribed = 0
Unsubscribed
InternalError = 1
Internal Error
Unauthorized
TrackEnded = 3
Track Ended
SubscriptionEnded = 4
Subscription Ended
GoingAway = 5
Going Away
Expired = 6
Expired
Implementations§
Source§impl SubscribeDoneStatusCode
impl SubscribeDoneStatusCode
Sourcepub const ALL: &[SubscribeDoneStatusCode]
pub const ALL: &[SubscribeDoneStatusCode]
Every SUBSCRIBE_DONE status code draft-07 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