Module behaviour
Modules§
Structs§
- Address
Change FromSwarm
variant that informs the behaviour that theConnectedPoint
of an existing connection has changed.- Connection
Closed FromSwarm
variant that informs the behaviour about a closed connection to a peer.- Connection
Established FromSwarm
variant that informs the behaviour about a newly established connection to a peer.- Dial
Failure FromSwarm
variant that informs the behaviour that the dial to a known or unknown node failed.- Expired
Listen Addr 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.- External
Addr Confirmed FromSwarm
variant that informs the behaviour that an external address was confirmed.- External
Addr Expired FromSwarm
variant that informs the behaviour that an external address was removed.- External
Addresses - Utility struct for tracking the external addresses of a
Swarm
. - Listen
Addresses - Utility struct for tracking the addresses a
Swarm
is listening on. - Listen
Failure FromSwarm
variant that informs the behaviour that an error happened on an incoming connection during its initial handshake.- Listener
Closed FromSwarm
variant that informs the behaviour that a listener closed.- Listener
Error FromSwarm
variant that informs the behaviour that a listener experienced an error.- NewExternal
Addr Candidate FromSwarm
variant that informs the behaviour about a new candidate for an external address for us.- NewExternal
Addr OfPeer FromSwarm
variant that informs the behaviour that a new external address for a remote peer was detected.- NewListen
Addr FromSwarm
variant that informs the behaviour that we have started listening on a new multiaddr.- NewListener
FromSwarm
variant that informs the behaviour that a new listener was created.- Peer
Addresses - Struct for tracking peers’ external addresses of the
Swarm
.
Enums§
- Close
Connection - The options which connections to close.
- From
Swarm - Enumeration with the list of the possible events
to pass to
on_swarm_event
. - Notify
Handler - The options w.r.t. which connection handler to notify of an event.
- ToSwarm
- A command issued from a
NetworkBehaviour
for theSwarm
.
Traits§
- Network
Behaviour - A
NetworkBehaviour
defines the behaviour of the local node on the network.