pub struct PeerList {Show 25 fields
pub active: bool,
pub avg_latency: f64,
pub block_in_porc_size: i64,
pub connect_time: i64,
pub disconnect_times: i64,
pub head_block_time_we_both_have: i64,
pub head_block_we_both_have: String,
pub host: String,
pub in_flow: i64,
pub last_block_update_time: i64,
pub last_sync_block: String,
pub local_disconnect_reason: String,
pub need_sync_from_peer: bool,
pub need_sync_from_us: bool,
pub node_count: i64,
pub node_id: String,
pub port: i64,
pub remain_num: i64,
pub remote_disconnect_reason: String,
pub score: i64,
pub sync_block_requested_size: i64,
pub sync_flag: bool,
pub sync_to_fetch_size: i64,
pub sync_to_fetch_size_peek_num: i64,
pub un_fetch_syn_num: i64,
}
Fields§
§active: bool
§avg_latency: f64
§block_in_porc_size: i64
§connect_time: i64
§disconnect_times: i64
§head_block_time_we_both_have: i64
§head_block_we_both_have: String
§host: String
§in_flow: i64
§last_block_update_time: i64
§last_sync_block: String
§local_disconnect_reason: String
§need_sync_from_peer: bool
§need_sync_from_us: bool
§node_count: i64
§node_id: String
§port: i64
§remain_num: i64
§remote_disconnect_reason: String
§score: i64
§sync_block_requested_size: i64
§sync_flag: bool
§sync_to_fetch_size: i64
§sync_to_fetch_size_peek_num: i64
§un_fetch_syn_num: i64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PeerList
impl<'de> Deserialize<'de> for PeerList
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
impl StructuralPartialEq for PeerList
Auto Trait Implementations§
impl Freeze for PeerList
impl RefUnwindSafe for PeerList
impl Send for PeerList
impl Sync for PeerList
impl Unpin for PeerList
impl UnwindSafe for PeerList
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