Module libp2p_swarm::behaviour
source · Modules
Structs
FromSwarm
variant that informs the behaviour that theConnectedPoint
of an existing connection has changed.FromSwarm
variant that informs the behaviour about a closed connection to a peer.FromSwarm
variant that informs the behaviour about a newly established connection to a peer.FromSwarm
variant that informs the behaviour that the dial to a known or unknown node failed.FromSwarm
variant that informs the behaviour that an external address was removed.FromSwarm
variant that informs the behaviour that a multiaddr we were listening on has expired, which means that we are no longer listening on it.FromSwarm
variant that informs the behaviour that an error happened on an incoming connection during its initial handshake.FromSwarm
variant that informs the behaviour that a listener closed.FromSwarm
variant that informs the behaviour that a listener experienced an error.FromSwarm
variant that informs the behaviour that we have discovered a new external address for us.FromSwarm
variant that informs the behaviour that we have started listening on a new multiaddr.FromSwarm
variant 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
. - An action that a
NetworkBehaviour
can trigger in theSwarm
in whose context it is executing. - The options w.r.t. which connection handler to notify of an event.
Traits
- A
NetworkBehaviour
defines the behaviour of the local node on the network. - Parameters passed to
poll()
, that theNetworkBehaviour
has access to.