#[repr(u64)]pub enum PublishErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
Uninterested = 4,
}Expand description
PUBLISH_ERROR codes (draft-13 Section 8.15).
Carried in the Error Code field of PUBLISH_ERROR. The table stops at 0x4; unlike the four other request-error tables in this draft it does not assign the 0x10 and 0x12 auth-token codes.
Variants§
InternalError = 0
Internal Error — An implementation specific or generic error occurred.
Unauthorized — The publisher is not authorized to publish the given namespace or
track.
Timeout = 2
Timeout — The subscription could not be established before an implementation specific
timeout.
NotSupported = 3
Not Supported — The endpoint does not support the PUBLISH method.
Uninterested = 4
Uninterested — The namespace or track is not of interest to the endpoint.
Implementations§
Source§impl PublishErrorCode
impl PublishErrorCode
Sourcepub const ALL: &[PublishErrorCode]
pub const ALL: &[PublishErrorCode]
Every PUBLISH_ERROR code draft-13 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 PublishErrorCode
impl Clone for PublishErrorCode
Source§fn clone(&self) -> PublishErrorCode
fn clone(&self) -> PublishErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more