pub struct NodeNo(/* private fields */);Expand description
Represents the node’s number in a distributed system.
Cannot be 0, it’s reserved to represent the local node.
Nodes with the same node_no cannot be connected.
NOTE: It’s 16-bit unsigned integer, which requires manual management for
bigger-than-small clusters and will be replaced with NodeLaunchId
totally in the future in order to simplify the management.
Implementations§
Source§impl NodeNo
impl NodeNo
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeNo
impl<'de> Deserialize<'de> for NodeNo
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
Source§impl Ord for NodeNo
impl Ord for NodeNo
Source§impl PartialOrd for NodeNo
impl PartialOrd for NodeNo
impl Copy for NodeNo
impl Eq for NodeNo
impl StructuralPartialEq for NodeNo
Auto Trait Implementations§
impl Freeze for NodeNo
impl RefUnwindSafe for NodeNo
impl Send for NodeNo
impl Sync for NodeNo
impl Unpin for NodeNo
impl UnsafeUnpin for NodeNo
impl UnwindSafe for NodeNo
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