Struct plumcast::MessageId[][src]

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.

Methods

impl MessageId
[src]

Returns the node identifier part of the message identifier.

Returns the sequence number part of the message identifier.

Trait Implementations

impl Debug for MessageId
[src]

Formats the value using the given formatter. Read more

impl Clone for MessageId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for MessageId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for MessageId
[src]

impl Hash for MessageId
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for MessageId

impl Sync for MessageId