pub struct NodeInfo {
pub node_public_key: Vec<u8>,
pub network_ids: Vec<String>,
pub addresses: Vec<String>,
pub node_metadata: NodeMetadata,
pub version: i64,
}Expand description
Information about a node in the network
INTENTION: Represents a snapshot of a node’s presence and capabilities within one or more networks. This information is shared via discovery mechanisms.
Fields§
§node_public_key: Vec<u8>The node’s unique identifier
network_ids: Vec<String>The list of network IDs this node participates in and handles traffic for. A node can be part of multiple networks simultaneously.
addresses: Vec<String>The node’s network addressess (e.g., “IP:PORT”) - ordered by preference
node_metadata: NodeMetadataNode services representing the services provided by this node
version: i64incremental version counter that change everytime the node changes (new services added, new event subscriptions, etc) when that happens a new version is published to known peers.. and that is how peers know if they need to update their own version of it
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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