pub struct NodeInfo {
pub id: H256,
pub name: String,
pub enode: String,
pub enr: Enr<SigningKey>,
pub ip: IpAddr,
pub ports: Ports,
pub listen_addr: String,
pub protocols: ProtocolInfo,
}Expand description
This includes general information about a running node, spanning networking and protocol details.
Fields§
§id: H256The node’s private key.
name: StringThe node’s user agent, containing a client name, version, OS, and other metadata.
enode: StringThe enode URL of the connected node.
enr: Enr<SigningKey>The ENR of the running client.
ip: IpAddrThe IP address of the connected node.
ports: PortsThe node’s listening ports.
listen_addr: StringThe node’s listening address.
protocols: ProtocolInfoThe 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