Struct bitcoin_cli::NetinfoRequestHandler
source · pub struct NetinfoRequestHandler {Show 13 fields
pub counts: [[u16; 5]; 3],
pub block_relay_peers_count: u8,
pub manual_peers_count: u8,
pub details_level: u8,
pub is_asmap_on: bool,
pub max_addr_length: usize,
pub max_addr_processed_length: usize,
pub max_addr_rate_limited_length: usize,
pub max_age_length: usize,
pub max_id_length: usize,
pub peers: Vec<NetInfoRequestHandlerPeer>,
pub time_now: i64,
pub help_doc: String,
}
Expand description
| Process netinfo requests |
Fields§
§counts: [[u16; 5]; 3]
| Peer counts by (in/out/total, networks/total) |
block_relay_peers_count: u8
§manual_peers_count: u8
§details_level: u8
| Optional user-supplied arg to set dashboard | details level |
is_asmap_on: bool
§max_addr_length: usize
§max_addr_processed_length: usize
§max_addr_rate_limited_length: usize
§max_age_length: usize
§max_id_length: usize
§peers: Vec<NetInfoRequestHandlerPeer>
§time_now: i64
§help_doc: String
Implementations§
source§impl NetinfoRequestHandler
impl NetinfoRequestHandler
pub fn default_help_doc() -> String
pub fn network_string_to_id(&self, str_: &str) -> i8
pub fn details_requested(&self) -> bool
pub fn is_address_selected(&self) -> bool
pub fn is_version_selected(&self) -> bool
pub fn chain_to_string(&self) -> &'static str
pub fn ping_time_to_string(&self, seconds: f64) -> String
pub fn connection_type_for_netinfo(&self, conn_type: &str) -> String
Trait Implementations§
source§impl BaseRequestHandler for NetinfoRequestHandler
impl BaseRequestHandler for NetinfoRequestHandler
fn prepare_request( &mut self, method: &str, args: &Vec<String> ) -> Result<UniValue, StdException>
fn process_reply( &mut self, batch_in: &UniValue ) -> Result<UniValue, StdException>
Auto Trait Implementations§
impl RefUnwindSafe for NetinfoRequestHandler
impl Send for NetinfoRequestHandler
impl Sync for NetinfoRequestHandler
impl Unpin for NetinfoRequestHandler
impl UnwindSafe for NetinfoRequestHandler
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more