[][src]Module splinter::peer

Data structures and implementations for managing Splinter peers.

The public interface includes the structs PeerManager, PeerManagerConnector, PeerInterconnect and the enum PeerManagerNotification.

Modules

interconnect

Data structures and implementations for sending and receiving messages from peers.

Structs

EndpointPeerRef

Used to keep track of peer references that are created only with an endpoint. When dropped, a request is sent to the PeerManager to remove a reference to the peer, thus removing the peer if no more references exist.

PeerManager

The PeerManager is in charge of keeping track of peers and their reference counts, as well as requesting connections from the ConnectionManager. If a peer has disconnected, the PeerManager will also try the peer's other endpoints until one is successful.

PeerManagerBuilder
PeerManagerConnector

The PeerManagerConnector will be used to make requests to the PeerManager.

PeerNotificationIter

PeerNotificationIter is used to receive notfications from the PeerManager. The notifications include:

PeerRef

Used to keep track of peer references. When dropped, the PeerRef will send a request to the PeerManager to remove a reference to the peer, thus removing the peer if no more references exist.

ShutdownHandle

Handles sending a shutdown message to the PeerManager and the Pacemaker. Deprecated, use ShutdownSignaler instead.

ShutdownSignaler

Handles sending a shutdown message to the PeerManager and the Pacemaker

Enums

PeerManagerNotification

Messages that will be dispatched to all subscription handlers

Type Definitions

SubscriberId