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
Auto Trait Implementations§
impl RefUnwindSafe for PeerNetworkInfo
impl Send for PeerNetworkInfo
impl Sync for PeerNetworkInfo
impl Unpin for PeerNetworkInfo
impl UnwindSafe for PeerNetworkInfo
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