#[repr(u64)]pub enum SubscribeAnnouncesErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
NamespacePrefixUnknown = 4,
}Expand description
SUBSCRIBE_ANNOUNCES_ERROR codes (draft-10, Section 8.25 “SUBSCRIBE_ANNOUNCES_ERROR”).
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-10 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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubscribeAnnouncesErrorCode
Source§impl Debug for SubscribeAnnouncesErrorCode
impl Debug for SubscribeAnnouncesErrorCode
impl Eq for SubscribeAnnouncesErrorCode
impl StructuralPartialEq for SubscribeAnnouncesErrorCode
Auto Trait Implementations§
impl Freeze for SubscribeAnnouncesErrorCode
impl RefUnwindSafe for SubscribeAnnouncesErrorCode
impl Send for SubscribeAnnouncesErrorCode
impl Sync for SubscribeAnnouncesErrorCode
impl Unpin for SubscribeAnnouncesErrorCode
impl UnsafeUnpin for SubscribeAnnouncesErrorCode
impl UnwindSafe for SubscribeAnnouncesErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more