Skip to main content

PeerEntry

Type Alias PeerEntry 

Source
pub type PeerEntry = MeshPeerEntry<MeshPeer>;

Aliased Type§

pub struct PeerEntry {
    pub peer_id: PeerId,
    pub direction: PeerDirection,
    pub state: ConnectionState,
    pub last_seen: Instant,
    pub peer: Option<MeshPeer>,
    pub pool: PeerPool,
    pub transport: PeerTransport,
    pub signal_paths: BTreeSet<PeerSignalPath>,
    pub bytes_sent: u64,
    pub bytes_received: u64,
}

Fields§

§peer_id: PeerId§direction: PeerDirection§state: ConnectionState§last_seen: Instant§peer: Option<MeshPeer>§pool: PeerPool§transport: PeerTransport§signal_paths: BTreeSet<PeerSignalPath>§bytes_sent: u64§bytes_received: u64