#[repr(u64)]pub enum FetchErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
TrackDoesNotExist = 4,
InvalidRange = 5,
}Expand description
FETCH_ERROR codes (draft-08, section 7.18 “FETCH_ERROR”).
The same first six code points as SubscribeErrorCode; this registry has
no equivalent of Retry Track Alias (0x6).
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-08 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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FetchErrorCode
Source§impl Debug for FetchErrorCode
impl Debug for FetchErrorCode
impl Eq for FetchErrorCode
Source§impl PartialEq for FetchErrorCode
impl PartialEq for FetchErrorCode
impl StructuralPartialEq for FetchErrorCode
Auto Trait Implementations§
impl Freeze for FetchErrorCode
impl RefUnwindSafe for FetchErrorCode
impl Send for FetchErrorCode
impl Sync for FetchErrorCode
impl Unpin for FetchErrorCode
impl UnsafeUnpin for FetchErrorCode
impl UnwindSafe for FetchErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more