Struct quorum_vault_client::ParityPeerType
source · pub struct ParityPeerType {
pub active: usize,
pub connected: usize,
pub max: u32,
pub peers: Vec<ParityPeerInfo, Global>,
}
Expand description
Stores active peer count, connected count, max connected peers and a list of peers for parity node
Fields§
§active: usize
number of active peers
connected: usize
number of connected peers
max: u32
maximum number of peers that can connect
peers: Vec<ParityPeerInfo, Global>
list of all peers with details
Trait Implementations§
source§impl Clone for ParityPeerType
impl Clone for ParityPeerType
source§fn clone(&self) -> ParityPeerType
fn clone(&self) -> ParityPeerType
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 ParityPeerType
impl Debug for ParityPeerType
source§impl<'de> Deserialize<'de> for ParityPeerType
impl<'de> Deserialize<'de> for ParityPeerType
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ParityPeerType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ParityPeerType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ParityPeerType> for ParityPeerType
impl PartialEq<ParityPeerType> for ParityPeerType
source§fn eq(&self, other: &ParityPeerType) -> bool
fn eq(&self, other: &ParityPeerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ParityPeerType
impl Serialize for ParityPeerType
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more