pub struct NodeStateUpdate {
pub node_id: String,
pub state: NodeState,
pub timestamp: SystemTime,
}Expand description
A state update message sent by a node to report its current state. These updates are used for monitoring, debugging, and UI visualization.
Fields§
§node_id: StringThe unique identifier of the node reporting the state
state: NodeStateThe new state of the node
timestamp: SystemTimeWhen this state change occurred
Implementations§
Trait Implementations§
Source§impl Clone for NodeStateUpdate
impl Clone for NodeStateUpdate
Source§fn clone(&self) -> NodeStateUpdate
fn clone(&self) -> NodeStateUpdate
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 NodeStateUpdate
impl RefUnwindSafe for NodeStateUpdate
impl Send for NodeStateUpdate
impl Sync for NodeStateUpdate
impl Unpin for NodeStateUpdate
impl UnwindSafe for NodeStateUpdate
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