#[repr(u64)]pub enum SubscribeErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
TrackDoesNotExist = 4,
InvalidRange = 5,
RetryTrackAlias = 6,
}Expand description
SUBSCRIBE_ERROR codes (draft-10, Section 8.8 “SUBSCRIBE_ERROR”).
Variants§
InternalError = 0
Internal Error
Unauthorized
Timeout = 2
Timeout
NotSupported = 3
Not Supported
TrackDoesNotExist = 4
Track Does Not Exist
InvalidRange = 5
Invalid Range — Section 8.6 directs a publisher that cannot satisfy
the requested start or end, or whose end has already been published, to
send SUBSCRIBE_ERROR with this code. A publisher MUST NOT send objects
from outside the requested start and end.
RetryTrackAlias = 6
Retry Track Alias — the subscriber SHOULD re-issue the SUBSCRIBE with
the Track Alias carried in the SUBSCRIBE_ERROR message instead. If that
Track Alias is already in use, the subscriber MUST close the connection
with a Duplicate Track Alias error.
Implementations§
Source§impl SubscribeErrorCode
impl SubscribeErrorCode
Sourcepub const ALL: &[SubscribeErrorCode]
pub const ALL: &[SubscribeErrorCode]
Every SUBSCRIBE_ERROR 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 SubscribeErrorCode
impl Clone for SubscribeErrorCode
Source§fn clone(&self) -> SubscribeErrorCode
fn clone(&self) -> SubscribeErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more