pub struct GetPeerInfoResult {Show 28 fields
pub id: u64,
pub addr: String,
pub addrbind: String,
pub addrlocal: Option<String>,
pub services: String,
pub relaytxes: bool,
pub lastsend: u64,
pub lastrecv: u64,
pub bytessent: u64,
pub bytesrecv: u64,
pub conntime: u64,
pub timeoffset: i64,
pub pingtime: Option<f64>,
pub minping: Option<f64>,
pub pingwait: Option<f64>,
pub version: u64,
pub subver: String,
pub inbound: bool,
pub addnode: bool,
pub startingheight: i64,
pub banscore: i64,
pub synced_headers: i64,
pub synced_blocks: i64,
pub inflight: Vec<u64>,
pub whitelisted: bool,
pub min_fee_filter: Option<Amount>,
pub bytessent_per_msg: HashMap<String, u64>,
pub bytesrecv_per_msg: HashMap<String, u64>,
}Expand description
Models the result of “getpeerinfo”
Fields§
§id: u64Peer index
addr: StringThe IP address and port of the peer
addrbind: StringBind address of the connection to the peer
addrlocal: Option<String>Local address as reported by the peer
services: StringThe services offered
relaytxes: boolWhether peer has asked us to relay transactions to it
lastsend: u64The time in seconds since epoch (Jan 1 1970 GMT) of the last send
lastrecv: u64The time in seconds since epoch (Jan 1 1970 GMT) of the last receive
bytessent: u64The total bytes sent
bytesrecv: u64The total bytes received
conntime: u64The connection time in seconds since epoch (Jan 1 1970 GMT)
timeoffset: i64The 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: u64The peer version, such as 70001
subver: StringThe string version
inbound: boolInbound (true) or Outbound (false)
addnode: boolWhether connection was due to addnode/-connect or if it was an
automatic/inbound connection
startingheight: i64The starting height (block) of the peer
banscore: i64The ban score
synced_headers: i64The last header we have in common with this peer
synced_blocks: i64The last block we have in common with this peer
inflight: Vec<u64>The heights of blocks we’re currently asking from this peer
whitelisted: boolWhether 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§
Source§impl Clone for GetPeerInfoResult
impl Clone for GetPeerInfoResult
Source§fn clone(&self) -> GetPeerInfoResult
fn clone(&self) -> GetPeerInfoResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more