Struct ethers_providers::NodeInfo
source · 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: H256
The node’s private 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: Enr<SigningKey>
The ENR of the running client.
ip: IpAddr
The IP address of the connected node.
ports: Ports
The node’s listening ports.
listen_addr: String
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 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