pub struct ShardHealth {
pub shard_id: ShardId,
pub healthy: bool,
pub load: f64,
pub memory_usage_mb: u64,
pub pending_operations: usize,
}Expand description
Health status of a shard.
Fields§
§shard_id: ShardIdThe shard being reported on.
healthy: boolWhether the shard is healthy and responsive.
load: f64Current load factor (0.0 = idle, 1.0 = fully loaded).
memory_usage_mb: u64Memory usage in megabytes.
pending_operations: usizeNumber of pending operations in the queue.
Implementations§
Trait Implementations§
Source§impl Clone for ShardHealth
impl Clone for ShardHealth
Source§fn clone(&self) -> ShardHealth
fn clone(&self) -> ShardHealth
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 ShardHealth
impl Debug for ShardHealth
Source§impl<'de> Deserialize<'de> for ShardHealth
impl<'de> Deserialize<'de> for ShardHealth
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 ShardHealth
impl RefUnwindSafe for ShardHealth
impl Send for ShardHealth
impl Sync for ShardHealth
impl Unpin for ShardHealth
impl UnsafeUnpin for ShardHealth
impl UnwindSafe for ShardHealth
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