pub struct MCPServerStats {
pub total_requests: u64,
pub total_responses: u64,
pub total_errors: u64,
pub avg_response_time: Duration,
pub active_sessions: u32,
pub total_tools: u32,
pub popular_tools: HashMap<String, u64>,
pub server_started_at: SystemTime,
}
Expand description
MCP server statistics
Fields§
§total_requests: u64
Total requests processed
total_responses: u64
Total responses sent
total_errors: u64
Total errors
avg_response_time: Duration
Average response time
active_sessions: u32
Active sessions
total_tools: u32
Total tools registered
popular_tools: HashMap<String, u64>
Most called tools
server_started_at: SystemTime
Server start time
Trait Implementations§
Source§impl Clone for MCPServerStats
impl Clone for MCPServerStats
Source§fn clone(&self) -> MCPServerStats
fn clone(&self) -> MCPServerStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MCPServerStats
impl Debug for MCPServerStats
Auto Trait Implementations§
impl Freeze for MCPServerStats
impl RefUnwindSafe for MCPServerStats
impl Send for MCPServerStats
impl Sync for MCPServerStats
impl Unpin for MCPServerStats
impl UnwindSafe for MCPServerStats
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