#[repr(u64)]pub enum PublishErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
Uninterested = 4,
}Expand description
PUBLISH_ERROR codes, from the “PUBLISH_ERROR Codes” registry in draft-ietf-moq-transport-14 Section 13.1.4. Every row cites Section 9.15 (PUBLISH_ERROR), the source of the descriptions below.
Unlike the other request-scoped registries in this draft, PUBLISH_ERROR
assigns no MALFORMED_AUTH_TOKEN (0x10) or EXPIRED_AUTH_TOKEN (0x12).
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-14 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