pub enum EntrySkip {
BadPeerId,
SelfOrPartner,
BadAddress,
TooManyAddresses,
TooManyFlags,
NetworkMismatch,
BadVia,
TooOld,
}Expand description
Why a single inbound peer entry was skipped by receiver-side validation (SPEC §3.3). Skipping is
silent — no pex_error, no strike; entry-level junk is expected from honest-but-stale peers.
Variants§
BadPeerId
peer_id is not exactly 64 lowercase hex characters.
SelfOrPartner
peer_id equals the receiver’s own or the sender’s peer_id (SPEC §5.4).
BadAddress
An address has an empty host, a port of 0, or an unrecognized kind token.
TooManyAddresses
addresses has more than PEX_MAX_ADDRESSES elements.
TooManyFlags
flags has more than PEX_MAX_FLAGS elements (or a token over PEX_MAX_FLAG_LEN chars).
NetworkMismatch
network_id differs from the link’s network.
BadVia
via is not one of the three registered provenance tokens.
TooOld
last_seen is more than PEX_MAX_ENTRY_AGE seconds in the past by the receiver’s clock.
Trait Implementations§
impl Copy for EntrySkip
impl Eq for EntrySkip
impl StructuralPartialEq for EntrySkip
Auto Trait Implementations§
impl Freeze for EntrySkip
impl RefUnwindSafe for EntrySkip
impl Send for EntrySkip
impl Sync for EntrySkip
impl Unpin for EntrySkip
impl UnsafeUnpin for EntrySkip
impl UnwindSafe for EntrySkip
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