pub enum PexEvent {
Candidates(Vec<PeerEntry>),
Dropped {
peer_ids: Vec<String>,
},
Violation {
code: u16,
mute: bool,
},
}Expand description
An event the engine surfaces from an inbound message for the host to act on (SPEC Appendix A).
Variants§
Candidates(Vec<PeerEntry>)
Validated, verified-candidate peer hints — feed to the address manager as new-table candidates to dial + verify (SPEC §9.3). These are hints, never authenticated facts (§11.1).
Dropped
The link’s sender dropped these peer_ids (SPEC §8.3) — advisory. Unlist the sender as a
source for them; never delete a first-hand-verified peer on this alone.
Fields
Violation
The link’s sender committed a violation (SPEC §11.2). mute is true once the direction is
muted — either at the strike limit (misbehavior: code 1/3/4/6 → the host MAY penalize /
disconnect) or immediately for a version/network mismatch (code 2/5 → benign; the host MUST
NOT tear down the underlying connection for that alone, SPEC §5.2).