[−][src]Struct plumcast::message::MessageId
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]
pub fn node(&self) -> NodeId
[src]
Returns the node identifier part of the message identifier.
pub fn seqno(&self) -> u64
[src]
Returns the sequence number part of the message identifier.
Trait Implementations
impl Clone for MessageId
[src]
fn clone(&self) -> MessageId
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for MessageId
[src]
fn cmp(&self, other: &MessageId) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Eq for MessageId
[src]
impl Copy for MessageId
[src]
impl PartialOrd<MessageId> for MessageId
[src]
fn partial_cmp(&self, other: &MessageId) -> Option<Ordering>
[src]
fn lt(&self, other: &MessageId) -> bool
[src]
fn le(&self, other: &MessageId) -> bool
[src]
fn gt(&self, other: &MessageId) -> bool
[src]
fn ge(&self, other: &MessageId) -> bool
[src]
impl PartialEq<MessageId> for MessageId
[src]
impl Debug for MessageId
[src]
impl Hash for MessageId
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,