pub struct RpcNetworkInfoResponse {
pub active_peers: Vec<RpcPeerInfo>,
pub known_producers: Vec<RpcKnownProducer>,
pub num_active_peers: u32,
pub peer_max_count: u32,
pub received_bytes_per_sec: u64,
pub sent_bytes_per_sec: u64,
}
Expand description
RpcNetworkInfoResponse
JSON schema
{
"type": "object",
"required": [
"active_peers",
"known_producers",
"num_active_peers",
"peer_max_count",
"received_bytes_per_sec",
"sent_bytes_per_sec"
],
"properties": {
"active_peers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RpcPeerInfo"
}
},
"known_producers": {
"description": "Accounts of known block and chunk producers from routing table.",
"type": "array",
"items": {
"$ref": "#/components/schemas/RpcKnownProducer"
}
},
"num_active_peers": {
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"peer_max_count": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"received_bytes_per_sec": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"sent_bytes_per_sec": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
Fields§
§active_peers: Vec<RpcPeerInfo>
§known_producers: Vec<RpcKnownProducer>
Accounts of known block and chunk producers from routing table.
num_active_peers: u32
§peer_max_count: u32
§received_bytes_per_sec: u64
§sent_bytes_per_sec: u64
Trait Implementations§
Source§impl Clone for RpcNetworkInfoResponse
impl Clone for RpcNetworkInfoResponse
Source§fn clone(&self) -> RpcNetworkInfoResponse
fn clone(&self) -> RpcNetworkInfoResponse
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 RpcNetworkInfoResponse
impl Debug for RpcNetworkInfoResponse
Source§impl<'de> Deserialize<'de> for RpcNetworkInfoResponse
impl<'de> Deserialize<'de> for RpcNetworkInfoResponse
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 From<&RpcNetworkInfoResponse> for RpcNetworkInfoResponse
impl From<&RpcNetworkInfoResponse> for RpcNetworkInfoResponse
Source§fn from(value: &RpcNetworkInfoResponse) -> Self
fn from(value: &RpcNetworkInfoResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcNetworkInfoResponse
impl RefUnwindSafe for RpcNetworkInfoResponse
impl Send for RpcNetworkInfoResponse
impl Sync for RpcNetworkInfoResponse
impl Unpin for RpcNetworkInfoResponse
impl UnwindSafe for RpcNetworkInfoResponse
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