Module libp2p_swarm::behaviour
source · Modules
Enums
The options which connections to close.
An action that a
NetworkBehaviour
can trigger in the Swarm
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.When deriving
NetworkBehaviour
this trait must by default be implemented for all the
possible event types generated by the inner behaviours.Parameters passed to
poll()
, that the NetworkBehaviour
has access to.