pub struct ParityPeerType {
pub active: usize,
pub connected: usize,
pub max: u32,
pub peers: Vec<ParityPeerInfo>,
}
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>
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<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
Source§impl PartialEq for ParityPeerType
impl PartialEq for ParityPeerType
Source§impl Serialize for ParityPeerType
impl Serialize for ParityPeerType
impl StructuralPartialEq for ParityPeerType
Auto Trait Implementations§
impl Freeze for ParityPeerType
impl RefUnwindSafe for ParityPeerType
impl Send for ParityPeerType
impl Sync for ParityPeerType
impl Unpin for ParityPeerType
impl UnwindSafe for ParityPeerType
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