pub struct NodeStatsUpdate {
pub node_id: String,
pub stats: NodeStats,
pub timestamp: SystemTime,
}Expand description
A statistics update message sent by a node to report its current metrics. These updates are throttled to prevent overload (typically every 10s or 1000 packets).
Fields§
§node_id: StringThe unique identifier of the node reporting the stats
stats: NodeStatsThe current statistics snapshot
timestamp: SystemTimeWhen this snapshot was taken
Trait Implementations§
Source§impl Clone for NodeStatsUpdate
impl Clone for NodeStatsUpdate
Source§fn clone(&self) -> NodeStatsUpdate
fn clone(&self) -> NodeStatsUpdate
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 moreAuto Trait Implementations§
impl Freeze for NodeStatsUpdate
impl RefUnwindSafe for NodeStatsUpdate
impl Send for NodeStatsUpdate
impl Sync for NodeStatsUpdate
impl Unpin for NodeStatsUpdate
impl UnwindSafe for NodeStatsUpdate
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