iroh_gossip::net

Type Alias ProtoEvent

Source
pub type ProtoEvent = Event<PublicKey>;
Available on crate feature net only.
Expand description

Events emitted from the gossip protocol

Aliased Type§

enum ProtoEvent {
    NeighborUp(PublicKey),
    NeighborDown(PublicKey),
    Received(GossipEvent<PublicKey>),
}

Variants§

§

NeighborUp(PublicKey)

We have a new, direct neighbor in the swarm membership layer for this topic

§

NeighborDown(PublicKey)

We dropped direct neighbor in the swarm membership layer for this topic

§

Received(GossipEvent<PublicKey>)

A gossip message was received for this topic