pub struct MessageId { /* fields omitted */ }
Message identifier.
An identifier consists of the node identifier part and the sequence number part.
The node identifier part which type is NodeId
indicates the sender (origin) of the message.
The sequence number part indicates the number of messages broadcasted by the sender so far.
Identifiers are assigned automatically when broadcasting messages.
It is guaranteed that the identifiers are unique in a cluster
unless the OS processes executing plumcast nodes are restarted.
Practically confliction of identifiers is extremely rare
even if OS processes are frequently restarted.
Returns the node identifier part of the message identifier.
Returns the sequence number part of the message identifier.
Formats the value using the given formatter. Read more
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more