pub struct ParityPeerInfo {
pub id: Option<String>,
pub name: String,
pub caps: Vec<String>,
pub network: PeerNetworkInfo,
pub protocols: PeerProtocolsInfo,
}
Expand description
details of a peer
Fields§
§id: Option<String>
id of peer
name: String
name of peer if set by user
caps: Vec<String>
sync logic for protocol messaging
network: PeerNetworkInfo
remote address and local address
protocols: PeerProtocolsInfo
protocol version of peer
Trait Implementations§
Source§impl Clone for ParityPeerInfo
impl Clone for ParityPeerInfo
Source§fn clone(&self) -> ParityPeerInfo
fn clone(&self) -> ParityPeerInfo
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 ParityPeerInfo
impl Debug for ParityPeerInfo
Source§impl<'de> Deserialize<'de> for ParityPeerInfo
impl<'de> Deserialize<'de> for ParityPeerInfo
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 ParityPeerInfo
impl PartialEq for ParityPeerInfo
Source§impl Serialize for ParityPeerInfo
impl Serialize for ParityPeerInfo
impl StructuralPartialEq for ParityPeerInfo
Auto Trait Implementations§
impl Freeze for ParityPeerInfo
impl RefUnwindSafe for ParityPeerInfo
impl Send for ParityPeerInfo
impl Sync for ParityPeerInfo
impl Unpin for ParityPeerInfo
impl UnwindSafe for ParityPeerInfo
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