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),
JoinFailed(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
JoinFailed(PublicKey)
We failed to dial a peer that we wanted to neighbor with.
Received(GossipEvent<PublicKey>)
A gossip message was received for this topic