Struct bee_protocol::types::peer::Peer[][src]

pub struct Peer { /* fields omitted */ }
Expand description

A type holding information related to a peer.

Implementations

Creates a new Peer.

Returns the identifier of the Peer.

Returns the address of the Peer.

Returns the alias of the Peer.

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 or not.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.