pub struct NodeId(/* private fields */);Expand description
Node identifier (u64).
Note that if you want to distinguish nodes by their names (not integers), mapping node names to identifiers is out of the scope of this crate.
Besides, each Node in a cluster can have a different mapping of names to identifiers.
In this case, it is necessary to remap NodeIds in Messages before delivering them to other nodes.
Implementations§
Trait Implementations§
Source§impl AddAssign for NodeId
impl AddAssign for NodeId
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl Ord for NodeId
impl Ord for NodeId
Source§impl PartialOrd for NodeId
impl PartialOrd for NodeId
Source§impl SubAssign for NodeId
impl SubAssign for NodeId
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for NodeId
impl Eq for NodeId
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Freeze for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnwindSafe for NodeId
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