#[repr(u64)]pub enum AnnounceErrorCode {
InternalError = 0,
Unauthorized = 1,
Timeout = 2,
NotSupported = 3,
Uninterested = 4,
}Expand description
ANNOUNCE_ERROR codes (draft-08, section 7.10 “ANNOUNCE_ERROR”).
Variants§
InternalError = 0
Internal Error
Unauthorized
Timeout = 2
Timeout
NotSupported = 3
Not Supported
Uninterested = 4
Uninterested
Implementations§
Source§impl AnnounceErrorCode
impl AnnounceErrorCode
Sourcepub const ALL: &[AnnounceErrorCode]
pub const ALL: &[AnnounceErrorCode]
Every ANNOUNCE_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 AnnounceErrorCode
impl Clone for AnnounceErrorCode
Source§fn clone(&self) -> AnnounceErrorCode
fn clone(&self) -> AnnounceErrorCode
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 AnnounceErrorCode
Source§impl Debug for AnnounceErrorCode
impl Debug for AnnounceErrorCode
impl Eq for AnnounceErrorCode
Source§impl PartialEq for AnnounceErrorCode
impl PartialEq for AnnounceErrorCode
impl StructuralPartialEq for AnnounceErrorCode
Auto Trait Implementations§
impl Freeze for AnnounceErrorCode
impl RefUnwindSafe for AnnounceErrorCode
impl Send for AnnounceErrorCode
impl Sync for AnnounceErrorCode
impl Unpin for AnnounceErrorCode
impl UnsafeUnpin for AnnounceErrorCode
impl UnwindSafe for AnnounceErrorCode
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