#[repr(u64)]pub enum FetchErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
TrackDoesNotExist = 4,
InvalidRange = 5,
}Expand description
FETCH_ERROR codes, from draft-09 Section 7.18 (FETCH_ERROR).
The draft introduces the table with “The application SHOULD use a relevant
error code in FETCH_ERROR, as defined below” and gives no prose beyond the
Reason column for any of these codes. The table stops at Invalid Range:
unlike SUBSCRIBE_ERROR, FETCH_ERROR has no Retry Track Alias code in this
draft.
Variants§
InternalError = 0
Internal Error.
Unauthorized.
Timeout = 2
Timeout.
NotSupported = 3
Not Supported.
TrackDoesNotExist = 4
Track Does Not Exist.
InvalidRange = 5
Invalid Range.
Implementations§
Source§impl FetchErrorCode
impl FetchErrorCode
Sourcepub const ALL: &[FetchErrorCode]
pub const ALL: &[FetchErrorCode]
Every FETCH_ERROR code draft-09 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 FetchErrorCode
impl Clone for FetchErrorCode
Source§fn clone(&self) -> FetchErrorCode
fn clone(&self) -> FetchErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more