pub struct GetNetworkInfoResult {Show 15 fields
pub version: usize,
pub subversion: String,
pub protocol_version: usize,
pub local_services: String,
pub local_relay: bool,
pub time_offset: isize,
pub connections: usize,
pub connections_in: Option<usize>,
pub connections_out: Option<usize>,
pub network_active: bool,
pub networks: Vec<GetNetworkInfoResultNetwork>,
pub relay_fee: Amount,
pub incremental_fee: Amount,
pub local_addresses: Vec<GetNetworkInfoResultAddress>,
pub warnings: String,
}
Fields
version: usize
subversion: String
protocol_version: usize
local_services: String
local_relay: bool
time_offset: isize
connections: usize
connections_in: Option<usize>
The number of inbound connections Added in Bitcoin Core v0.21
connections_out: Option<usize>
The number of outbound connections Added in Bitcoin Core v0.21
network_active: bool
networks: Vec<GetNetworkInfoResultNetwork>
relay_fee: Amount
incremental_fee: Amount
local_addresses: Vec<GetNetworkInfoResultAddress>
warnings: String
Trait Implementations
sourceimpl Clone for GetNetworkInfoResult
impl Clone for GetNetworkInfoResult
sourcefn clone(&self) -> GetNetworkInfoResult
fn clone(&self) -> GetNetworkInfoResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetNetworkInfoResult
impl Debug for GetNetworkInfoResult
sourceimpl<'de> Deserialize<'de> for GetNetworkInfoResult
impl<'de> Deserialize<'de> for GetNetworkInfoResult
sourcefn 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
sourceimpl PartialEq<GetNetworkInfoResult> for GetNetworkInfoResult
impl PartialEq<GetNetworkInfoResult> for GetNetworkInfoResult
sourcefn eq(&self, other: &GetNetworkInfoResult) -> bool
fn eq(&self, other: &GetNetworkInfoResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for GetNetworkInfoResult
impl Serialize for GetNetworkInfoResult
impl Eq for GetNetworkInfoResult
impl StructuralEq for GetNetworkInfoResult
impl StructuralPartialEq for GetNetworkInfoResult
Auto Trait Implementations
impl RefUnwindSafe for GetNetworkInfoResult
impl Send for GetNetworkInfoResult
impl Sync for GetNetworkInfoResult
impl Unpin for GetNetworkInfoResult
impl UnwindSafe for GetNetworkInfoResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more