#[repr(u64)]pub enum SubscribeAnnouncesErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
NamespacePrefixUnknown = 4,
}Expand description
SUBSCRIBE_ANNOUNCES_ERROR codes, from draft-09 Section 7.26 (SUBSCRIBE_ANNOUNCES_ERROR).
The draft introduces the table with “The application SHOULD use a relevant
error code in SUBSCRIBE_ANNOUNCES_ERROR, as defined below” and gives no prose
beyond the Reason column for any of these codes.
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-09 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