pub struct BroadcastId {
pub origin: NodeId,
pub seq: u64,
}Expand description
Names one broadcast uniquely: who originated it, and their sequence number for it.
Fields§
§origin: NodeId§seq: u64Trait Implementations§
Source§impl Clone for BroadcastId
impl Clone for BroadcastId
Source§fn clone(&self) -> BroadcastId
fn clone(&self) -> BroadcastId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BroadcastId
Source§impl Debug for BroadcastId
impl Debug for BroadcastId
Source§impl<'de> Deserialize<'de> for BroadcastId
impl<'de> Deserialize<'de> for BroadcastId
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 BroadcastId
Source§impl Hash for BroadcastId
impl Hash for BroadcastId
Source§impl Ord for BroadcastId
impl Ord for BroadcastId
Source§fn cmp(&self, other: &BroadcastId) -> Ordering
fn cmp(&self, other: &BroadcastId) -> Ordering
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 PartialEq for BroadcastId
impl PartialEq for BroadcastId
Source§fn eq(&self, other: &BroadcastId) -> bool
fn eq(&self, other: &BroadcastId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BroadcastId
impl PartialOrd for BroadcastId
Source§impl Serialize for BroadcastId
impl Serialize for BroadcastId
impl StructuralPartialEq for BroadcastId
Auto Trait Implementations§
impl Freeze for BroadcastId
impl RefUnwindSafe for BroadcastId
impl Send for BroadcastId
impl Sync for BroadcastId
impl Unpin for BroadcastId
impl UnsafeUnpin for BroadcastId
impl UnwindSafe for BroadcastId
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