pub struct StatusMetrics {
pub health: HealthIndicator,
pub memory_bytes: u64,
pub data_bytes: u64,
pub last_updated: Instant,
}Expand description
Collected metrics for status bar display
Fields§
§health: HealthIndicatorOverall health status
memory_bytes: u64Current memory usage in bytes
data_bytes: u64Total data size (SSTable bytes) visible
last_updated: InstantWhen these metrics were collected
Implementations§
Source§impl StatusMetrics
impl StatusMetrics
Sourcepub fn format_memory(&self) -> String
pub fn format_memory(&self) -> String
Format memory bytes as human-readable string
Examples: “0 B”, “512 B”, “1.5 KB”, “24.5 MB”, “1.2 GB”
Sourcepub fn format_data(&self) -> String
pub fn format_data(&self) -> String
Format data bytes as human-readable string
Examples: “0 B”, “512 B”, “1.5 KB”, “24.5 MB”, “1.2 GB”
Sourcepub fn health_symbol(&self) -> &'static str
pub fn health_symbol(&self) -> &'static str
Get the health indicator symbol for display
Returns: “OK” (green), “WARN” (yellow), or “ERR” (red)
Trait Implementations§
Source§impl Clone for StatusMetrics
impl Clone for StatusMetrics
Source§fn clone(&self) -> StatusMetrics
fn clone(&self) -> StatusMetrics
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 StatusMetrics
impl Debug for StatusMetrics
Auto Trait Implementations§
impl Freeze for StatusMetrics
impl RefUnwindSafe for StatusMetrics
impl Send for StatusMetrics
impl Sync for StatusMetrics
impl Unpin for StatusMetrics
impl UnsafeUnpin for StatusMetrics
impl UnwindSafe for StatusMetrics
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more