pub struct GetNetworkInfoResponse {Show 16 fields
pub connections: u64,
pub connections_in: u64,
pub connections_out: u64,
pub incrementalfee: f64,
pub localaddresses: Value,
pub localrelay: bool,
pub localservices: String,
pub localservicesnames: Value,
pub networkactive: bool,
pub networks: Value,
pub protocolversion: u64,
pub relayfee: f64,
pub subversion: String,
pub timeoffset: u64,
pub version: u32,
pub warnings: Value,
}Expand description
Response for the GetNetworkInfo RPC method
Fields§
§connections: u64the total number of connections
connections_in: u64the number of inbound connections
connections_out: u64the number of outbound connections
incrementalfee: f64minimum fee rate increment for mempool limiting or replacement in BTC/kvB
localaddresses: Valuelist of local addresses
localrelay: booltrue if transaction relay is requested from peers
localservices: Stringthe services we offer to the network
localservicesnames: Valuethe services we offer to the network, in human-readable form
networkactive: boolwhether p2p networking is enabled
networks: Valueinformation per network
protocolversion: u64the protocol version
relayfee: f64minimum relay fee rate for transactions in BTC/kvB
subversion: Stringthe server subversion string
timeoffset: u64the time offset
version: u32the server version
warnings: Valueany network and blockchain warnings (run with -deprecatedrpc=warnings to return the latest warning as a single string)
Trait Implementations§
Source§impl Clone for GetNetworkInfoResponse
impl Clone for GetNetworkInfoResponse
Source§fn clone(&self) -> GetNetworkInfoResponse
fn clone(&self) -> GetNetworkInfoResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetNetworkInfoResponse
impl Debug for GetNetworkInfoResponse
Source§impl<'de> Deserialize<'de> for GetNetworkInfoResponse
impl<'de> Deserialize<'de> for GetNetworkInfoResponse
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
Source§impl PartialEq for GetNetworkInfoResponse
impl PartialEq for GetNetworkInfoResponse
Source§impl Serialize for GetNetworkInfoResponse
impl Serialize for GetNetworkInfoResponse
impl StructuralPartialEq for GetNetworkInfoResponse
Auto Trait Implementations§
impl Freeze for GetNetworkInfoResponse
impl RefUnwindSafe for GetNetworkInfoResponse
impl Send for GetNetworkInfoResponse
impl Sync for GetNetworkInfoResponse
impl Unpin for GetNetworkInfoResponse
impl UnwindSafe for GetNetworkInfoResponse
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