pub struct StatsRenderer { /* private fields */ }Expand description
Renders server statistics in rich and plain formats.
Implementations§
Source§impl StatsRenderer
impl StatsRenderer
Sourcepub fn new(context: DisplayContext) -> Self
pub fn new(context: DisplayContext) -> Self
Create a renderer with an explicit display context.
Sourcepub fn render_panel(&self, stats: &StatsSnapshot, console: &FastMcpConsole)
pub fn render_panel(&self, stats: &StatsSnapshot, console: &FastMcpConsole)
Render a full statistics panel.
Sourcepub fn render_table(&self, stats: &StatsSnapshot, console: &FastMcpConsole)
pub fn render_table(&self, stats: &StatsSnapshot, console: &FastMcpConsole)
Render as a compact table.
Sourcepub fn render_oneline(&self, stats: &StatsSnapshot, console: &FastMcpConsole)
pub fn render_oneline(&self, stats: &StatsSnapshot, console: &FastMcpConsole)
Render a compact one-line summary.
Trait Implementations§
Source§impl Clone for StatsRenderer
impl Clone for StatsRenderer
Source§fn clone(&self) -> StatsRenderer
fn clone(&self) -> StatsRenderer
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 moreSource§impl Debug for StatsRenderer
impl Debug for StatsRenderer
Auto Trait Implementations§
impl Freeze for StatsRenderer
impl RefUnwindSafe for StatsRenderer
impl Send for StatsRenderer
impl Sync for StatsRenderer
impl Unpin for StatsRenderer
impl UnwindSafe for StatsRenderer
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
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).