pub struct NodeInfo {
pub name: NodeName,
pub id: NodeId,
pub addr: Option<SocketAddr>,
pub creation: u32,
}Expand description
Complete information about a node.
This includes the node’s name, numeric ID, network address, and creation number (for distinguishing node restarts).
Fields§
§name: NodeNameThe node’s human-readable name.
id: NodeIdThe node’s numeric ID.
addr: Option<SocketAddr>The node’s network address for distribution.
creation: u32Creation number - incremented on each node restart.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeInfo
impl<'de> Deserialize<'de> for NodeInfo
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
Auto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnsafeUnpin for NodeInfo
impl UnwindSafe for NodeInfo
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