Struct ethers_providers::admin::PeerNetworkInfo
source · pub struct PeerNetworkInfo {
pub local_address: SocketAddr,
pub remote_address: SocketAddr,
pub inbound: bool,
pub trusted: bool,
pub static_node: bool,
}Expand description
Represents networking related information about the peer, including details about whether or not it is inbound, trusted, or static.
Fields§
§local_address: SocketAddrThe local endpoint of the TCP connection.
remote_address: SocketAddrThe remote endpoint of the TCP connection.
inbound: boolWhether or not the peer is inbound.
trusted: boolWhether or not the peer is trusted.
static_node: boolWhether or not the peer is a static peer.
Trait Implementations§
source§impl Clone for PeerNetworkInfo
impl Clone for PeerNetworkInfo
source§fn clone(&self) -> PeerNetworkInfo
fn clone(&self) -> PeerNetworkInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PeerNetworkInfo
impl Debug for PeerNetworkInfo
source§impl<'de> Deserialize<'de> for PeerNetworkInfo
impl<'de> Deserialize<'de> for PeerNetworkInfo
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