[−][src]Struct bitcoincore_rpc_json_async::GetPeerInfoResult
Models the result of "getpeerinfo"
Fields
id: u64
Peer index
addr: String
The IP address and port of the peer
addrbind: String
Bind address of the connection to the peer
addrlocal: Option<String>
Local address as reported by the peer
services: String
The services offered
relaytxes: bool
Whether peer has asked us to relay transactions to it
lastsend: u64
The time in seconds since epoch (Jan 1 1970 GMT) of the last send
lastrecv: u64
The time in seconds since epoch (Jan 1 1970 GMT) of the last receive
bytessent: u64
The total bytes sent
bytesrecv: u64
The total bytes received
conntime: u64
The connection time in seconds since epoch (Jan 1 1970 GMT)
timeoffset: i64
The time offset in seconds
pingtime: Option<f64>
ping time (if available)
minping: Option<f64>
minimum observed ping time (if any at all)
pingwait: Option<f64>
ping wait (if non-zero)
version: u64
The peer version, such as 70001
subver: String
The string version
inbound: bool
Inbound (true) or Outbound (false)
addnode: bool
Whether connection was due to addnode
/-connect
or if it was an
automatic/inbound connection
startingheight: i64
The starting height (block) of the peer
banscore: i64
The ban score
synced_headers: i64
The last header we have in common with this peer
synced_blocks: i64
The last block we have in common with this peer
inflight: Vec<u64>
The heights of blocks we're currently asking from this peer
whitelisted: bool
Whether the peer is whitelisted
min_fee_filter: Option<Amount>
bytessent_per_msg: HashMap<String, u64>
The total bytes sent aggregated by message type
bytesrecv_per_msg: HashMap<String, u64>
The total bytes received aggregated by message type
Trait Implementations
impl Clone for GetPeerInfoResult
[src]
pub fn clone(&self) -> GetPeerInfoResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GetPeerInfoResult
[src]
impl<'de> Deserialize<'de> for GetPeerInfoResult
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for GetPeerInfoResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for GetPeerInfoResult
[src]
impl Send for GetPeerInfoResult
[src]
impl Sync for GetPeerInfoResult
[src]
impl Unpin for GetPeerInfoResult
[src]
impl UnwindSafe for GetPeerInfoResult
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,