#[repr(u64)]pub enum SubscribeAnnouncesErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
NamespacePrefixUnknown = 4,
}Expand description
SUBSCRIBE_ANNOUNCES_ERROR codes (draft-08, section 7.26 “SUBSCRIBE_ANNOUNCES_ERROR”).
This registry agrees with AnnounceErrorCode on 0x0 through 0x3 and then
diverges: 0x4 is Namespace Prefix Unknown here and Uninterested there.
The request-scoped registries in this draft are kept as separate types
because 0x4 carries three different meanings across them.
Variants§
InternalError = 0
Internal Error
Unauthorized
Timeout = 2
Timeout
NotSupported = 3
Not Supported
NamespacePrefixUnknown = 4
Namespace Prefix Unknown
Implementations§
Source§impl SubscribeAnnouncesErrorCode
impl SubscribeAnnouncesErrorCode
Sourcepub const ALL: &[SubscribeAnnouncesErrorCode]
pub const ALL: &[SubscribeAnnouncesErrorCode]
Every SUBSCRIBE_ANNOUNCES_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 SubscribeAnnouncesErrorCode
impl Clone for SubscribeAnnouncesErrorCode
Source§fn clone(&self) -> SubscribeAnnouncesErrorCode
fn clone(&self) -> SubscribeAnnouncesErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more