#[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, from the table in draft-11 section 8.12.
Variants§
InternalError = 0
Internal Error — an implementation specific or generic error occurred.
Unauthorized — the subscriber is no longer authorized to subscribe to
the given track.
TrackEnded = 2
Track Ended — the track is no longer being published.
SubscriptionEnded = 3
Subscription Ended — the publisher reached the end of an associated
Subscribe filter.
GoingAway = 4
Going Away — the subscriber or publisher issued a GOAWAY message.
Expired = 5
Expired — the publisher reached the timeout specified in SUBSCRIBE_OK.
TooFarBehind = 6
Too Far Behind — the publisher’s queue of objects to be sent to the
given subscriber exceeds its implementation defined limit.
Implementations§
Source§impl SubscribeDoneStatusCode
impl SubscribeDoneStatusCode
Sourcepub const ALL: &[SubscribeDoneStatusCode]
pub const ALL: &[SubscribeDoneStatusCode]
Every SUBSCRIBE_DONE status code draft-11 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