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

source

pub fn default_help_doc() -> String

source

pub fn network_string_to_id(&self, str_: &str) -> i8

source

pub fn details_requested(&self) -> bool

source

pub fn is_address_selected(&self) -> bool

source

pub fn is_version_selected(&self) -> bool

source

pub fn chain_to_string(&self) -> &'static str

source

pub fn ping_time_to_string(&self, seconds: f64) -> String

source

pub fn connection_type_for_netinfo(&self, conn_type: &str) -> String

Trait Implementations§

source§

impl BaseRequestHandler for NetinfoRequestHandler

source§

fn prepare_request( &mut self, method: &str, args: &Vec<String> ) -> Result<UniValue, StdException>

source§

fn process_reply( &mut self, batch_in: &UniValue ) -> Result<UniValue, StdException>

source§

impl Default for NetinfoRequestHandler

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,

§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> StaticUpcast<T> for T

§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V