pub struct NodeInfo {
pub id: String,
pub name: String,
pub enode: String,
pub enr: String,
pub ip: IpAddr,
pub ports: Ports,
pub listen_addr: SocketAddr,
pub protocols: ProtocolInfo,
}
Expand description
This includes general information about a running node, spanning networking and protocol details.
See geth’s NodeInfo
struct
for the source of each field.
Fields§
§id: String
Unique node identifier(also the encryption key).
name: String
The node’s user agent, containing a client name, version, OS, and other metadata.
enode: String
The enode URL of the connected node.
enr: String
The ENR of the running client.
ip: IpAddr
The IP address of the connected node.
ports: Ports
The node’s listening ports.
listen_addr: SocketAddr
The node’s listening address.
protocols: ProtocolInfo
The protocols that the node supports, with protocol metadata.
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)