#[repr(u64)]pub enum PublishErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
Uninterested = 4,
}Expand description
PUBLISH_ERROR codes (draft-12 section 8.15).
PUBLISH, PUBLISH_OK and PUBLISH_ERROR are new in draft-12; draft-11’s control message table has no PUBLISH entries. Unlike the other request-error tables this one assigns no auth-token codes at 0x10 or 0x12; its five entries are contiguous from 0x0.
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-12 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