Module libp2p_swarm::behaviour
source · Modules§
Structs§
FromSwarmvariant that informs the behaviour that theConnectedPointof an existing connection has changed.FromSwarmvariant that informs the behaviour about a closed connection to a peer.FromSwarmvariant that informs the behaviour about a newly established connection to a peer.FromSwarmvariant that informs the behaviour that the dial to a known or unknown node failed.FromSwarmvariant that informs the behaviour that a multiaddr we were listening on has expired, which means that we are no longer listening on it.FromSwarmvariant that informs the behaviour that an external address was confirmed.FromSwarmvariant that informs the behaviour that an external address was removed.- Utility struct for tracking the external addresses of a
Swarm. - Utility struct for tracking the addresses a
Swarmis listening on. FromSwarmvariant that informs the behaviour that an error happened on an incoming connection during its initial handshake.FromSwarmvariant that informs the behaviour that a listener closed.FromSwarmvariant that informs the behaviour that a listener experienced an error.FromSwarmvariant that informs the behaviour about a new candidate for an external address for us.FromSwarmvariant that informs the behaviour that we have started listening on a new multiaddr.FromSwarmvariant that informs the behaviour that a new listener was created.
Enums§
- The options which connections to close.
- Enumeration with the list of the possible events to pass to
on_swarm_event. - The options w.r.t. which connection handler to notify of an event.
- A command issued from a
NetworkBehaviourfor theSwarm.
Traits§
- A
NetworkBehaviourdefines the behaviour of the local node on the network. - Parameters passed to
poll(), that theNetworkBehaviourhas access to.