Struct bee_protocol::types::peer::Peer [−][src]
pub struct Peer { /* fields omitted */ }
Expand description
A type holding information related to a peer.
Implementations
Returns the relationship kind of the Peer
.
Returns whether the Peer
is connected or not.
Sets whether the Peer
is connected or not.
Returns the metrics of the Peer
.
Sets the solid milestone index of the Peer
.
Returns the solid milestone index of the Peer
.
Sets the pruned index of the Peer
.
Returns the pruned index of the Peer
.
Sets the latest milestone index of the Peer
.
Returns the latest milestone index of the Peer
.
Sets the number of connected peers of the Peer
.
Returns the number of connected peers of the Peer
.
Sets the number of synced peers of the Peer
.
Returns the number of synced peers of the Peer
.
Sets the timestamp of the last heartbeat sent by the Peer
.
Returns the timestamp of the last heartbeat sent by the Peer
.
Sets the timestamp of the last heartbeat received by the Peer
.
Returns the timestamp of the last heartbeat received by the Peer
.
Returns whether the Peer
is synced with a threshold or not.
Returns whether the Peer
has the data referenced by a given milestone index.
Returns whether the Peer
may have the data referenced by a given milestone index.