pub struct NodeHealth {
pub is_running: bool,
pub active_tasks: u32,
pub total_tasks: u32,
pub uptime_secs: u64,
pub sync_state: String,
pub block_height: u32,
pub mempool_size: u32,
pub peer_count: u32,
pub rpc_running: bool,
}Expand description
Node health status — tracks liveness of background tasks and overall node health.
Fields§
§is_running: boolWhether the node is running (not shutting down).
active_tasks: u32Number of background tasks that are alive.
total_tasks: u32Total background tasks spawned.
uptime_secs: u64Uptime in seconds.
sync_state: StringCurrent sync state.
block_height: u32Block index height.
mempool_size: u32Mempool transaction count.
peer_count: u32Connected peer count.
rpc_running: boolRPC server running.
Trait Implementations§
Source§impl Clone for NodeHealth
impl Clone for NodeHealth
Source§fn clone(&self) -> NodeHealth
fn clone(&self) -> NodeHealth
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 NodeHealth
impl RefUnwindSafe for NodeHealth
impl Send for NodeHealth
impl Sync for NodeHealth
impl Unpin for NodeHealth
impl UnsafeUnpin for NodeHealth
impl UnwindSafe for NodeHealth
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