pub struct MsgId {
pub src: NodeId,
pub seq: u64,
}Expand description
Names one transmission uniquely across the system.
The sender plus a per-sender sequence number. Deduplicating on this rather than on message content is what lets identical payloads be sent twice and delivered twice.
Fields§
§src: NodeId§seq: u64Trait Implementations§
impl Copy for MsgId
Source§impl<'de> Deserialize<'de> for MsgId
impl<'de> Deserialize<'de> for MsgId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MsgId
Source§impl Ord for MsgId
impl Ord for MsgId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for MsgId
impl PartialOrd for MsgId
impl StructuralPartialEq for MsgId
Auto Trait Implementations§
impl Freeze for MsgId
impl RefUnwindSafe for MsgId
impl Send for MsgId
impl Sync for MsgId
impl Unpin for MsgId
impl UnsafeUnpin for MsgId
impl UnwindSafe for MsgId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more