pub struct NodeNetworkProfile {
pub region: String,
pub bandwidth_mbps: u32,
pub latency_ms_to_peers: u32,
pub is_public: bool,
}Expand description
Network topology metadata for a node.
Fields§
§region: StringCloud region or datacenter identifier.
bandwidth_mbps: u32Available upstream bandwidth in Mbps.
latency_ms_to_peers: u32Median latency to known peers in milliseconds.
is_public: boolWhether the node is reachable from the public internet.
Trait Implementations§
Source§impl Clone for NodeNetworkProfile
impl Clone for NodeNetworkProfile
Source§fn clone(&self) -> NodeNetworkProfile
fn clone(&self) -> NodeNetworkProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeNetworkProfile
impl Debug for NodeNetworkProfile
Source§impl Default for NodeNetworkProfile
impl Default for NodeNetworkProfile
Source§fn default() -> NodeNetworkProfile
fn default() -> NodeNetworkProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeNetworkProfile
impl<'de> Deserialize<'de> for NodeNetworkProfile
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
Auto Trait Implementations§
impl Freeze for NodeNetworkProfile
impl RefUnwindSafe for NodeNetworkProfile
impl Send for NodeNetworkProfile
impl Sync for NodeNetworkProfile
impl Unpin for NodeNetworkProfile
impl UnsafeUnpin for NodeNetworkProfile
impl UnwindSafe for NodeNetworkProfile
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