Struct ethers_providers::admin::PeerInfo
source · pub struct PeerInfo {
pub enr: Option<Enr<SigningKey>>,
pub enode: String,
pub id: String,
pub name: String,
pub caps: Vec<String>,
pub network: PeerNetworkInfo,
pub protocols: PeerProtocolInfo,
}
Expand description
Represents a short summary of information known about a connected peer.
See geth’s PeerInfo
struct for the source of each field.
Fields§
§enr: Option<Enr<SigningKey>>
The peer’s ENR.
enode: String
The peer’s enode URL.
id: String
The peer’s enode ID.
name: String
The peer’s name.
caps: Vec<String>
The peer’s capabilities.
network: PeerNetworkInfo
Networking information about the peer.
protocols: PeerProtocolInfo
The protocols that the peer supports, with protocol metadata.
Trait Implementations§
source§impl<'de> Deserialize<'de> for PeerInfo
impl<'de> Deserialize<'de> for PeerInfo
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 PeerInfo
impl Send for PeerInfo
impl Sync for PeerInfo
impl Unpin for PeerInfo
impl UnwindSafe for PeerInfo
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