pub enum ReasonCode {
Show 28 variants
REQUESTED = 0,
BAD_PROTOCOL = 2,
TOO_MANY_PEERS = 4,
DUPLICATE_PEER = 5,
INCOMPATIBLE_PROTOCOL = 6,
RANDOM_ELIMINATION = 7,
PEER_QUITING = 8,
UNEXPECTED_IDENTITY = 9,
LOCAL_IDENTITY = 10,
PING_TIMEOUT = 11,
USER_REASON = 16,
RESET = 17,
SYNC_FAIL = 18,
FETCH_FAIL = 19,
BAD_TX = 20,
BAD_BLOCK = 21,
FORKED = 22,
UNLINKABLE = 23,
INCOMPATIBLE_VERSION = 24,
INCOMPATIBLE_CHAIN = 25,
TIME_OUT = 32,
CONNECT_FAIL = 33,
TOO_MANY_PEERS_WITH_SAME_IP = 34,
LIGHT_NODE_SYNC_FAIL = 35,
BELOW_THAN_ME = 36,
NOT_WITNESS = 37,
NO_SUCH_MESSAGE = 38,
UNKNOWN = 255,
}Variants§
REQUESTED = 0
BAD_PROTOCOL = 2
TOO_MANY_PEERS = 4
DUPLICATE_PEER = 5
INCOMPATIBLE_PROTOCOL = 6
RANDOM_ELIMINATION = 7
PEER_QUITING = 8
UNEXPECTED_IDENTITY = 9
LOCAL_IDENTITY = 10
PING_TIMEOUT = 11
USER_REASON = 16
RESET = 17
SYNC_FAIL = 18
FETCH_FAIL = 19
BAD_TX = 20
BAD_BLOCK = 21
FORKED = 22
UNLINKABLE = 23
INCOMPATIBLE_VERSION = 24
INCOMPATIBLE_CHAIN = 25
TIME_OUT = 32
CONNECT_FAIL = 33
TOO_MANY_PEERS_WITH_SAME_IP = 34
LIGHT_NODE_SYNC_FAIL = 35
BELOW_THAN_ME = 36
NOT_WITNESS = 37
NO_SUCH_MESSAGE = 38
UNKNOWN = 255
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReasonCode
impl Debug for ReasonCode
Source§impl Default for ReasonCode
impl Default for ReasonCode
Source§impl Enum for ReasonCode
impl Enum for ReasonCode
Source§const VALUES: &'static [ReasonCode]
const VALUES: &'static [ReasonCode]
All enum values for enum type.
Source§impl EnumFull for ReasonCode
impl EnumFull for ReasonCode
Source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
Source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
Source§impl Hash for ReasonCode
impl Hash for ReasonCode
Source§impl PartialEq for ReasonCode
impl PartialEq for ReasonCode
impl Copy for ReasonCode
impl Eq for ReasonCode
impl StructuralPartialEq for ReasonCode
Auto Trait Implementations§
impl Freeze for ReasonCode
impl RefUnwindSafe for ReasonCode
impl Send for ReasonCode
impl Sync for ReasonCode
impl Unpin for ReasonCode
impl UnwindSafe for ReasonCode
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