#[repr(u64)]pub enum PublishDoneStatusCode {
InternalError = 0,
Unauthorized = 1,
TrackEnded = 2,
SubscriptionEnded = 3,
GoingAway = 4,
Expired = 5,
TooFarBehind = 6,
MalformedTrack = 7,
UpdateFailed = 8,
}Expand description
PUBLISH_DONE Codes (draft-15 Section 13.3.3, defined in Section 9.15).
The status a publisher reports when a subscription ends. Draft-15 assigns 0x0 through 0x8 contiguously and reserves no greasing range.
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
subscription 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.
MalformedTrack = 7
MALFORMED_TRACK — a relay publisher detected the track was malformed (see
Section 2.4.2).
UpdateFailed = 8
UPDATE_FAILED — SUBSCRIBE_UPDATE failed on this subscription (see
Section 9.11).
Implementations§
Source§impl PublishDoneStatusCode
impl PublishDoneStatusCode
Sourcepub const ALL: &[PublishDoneStatusCode]
pub const ALL: &[PublishDoneStatusCode]
Every PUBLISH_DONE status code draft-15 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 PublishDoneStatusCode
impl Clone for PublishDoneStatusCode
Source§fn clone(&self) -> PublishDoneStatusCode
fn clone(&self) -> PublishDoneStatusCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more