pub struct MCPMetrics {
pub calls_per_sec: f64,
pub avg_latency_ms: f64,
pub success_rate: f64,
pub active_services: usize,
}
Expand description
MCP performance metrics
Fields§
§calls_per_sec: f64
Tool calls per second
avg_latency_ms: f64
Average call latency in milliseconds
success_rate: f64
Success rate (0.0 - 1.0)
active_services: usize
Active service count
Trait Implementations§
Source§impl Clone for MCPMetrics
impl Clone for MCPMetrics
Source§fn clone(&self) -> MCPMetrics
fn clone(&self) -> MCPMetrics
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 MCPMetrics
impl Debug for MCPMetrics
Source§impl Default for MCPMetrics
impl Default for MCPMetrics
Source§impl<'de> Deserialize<'de> for MCPMetrics
impl<'de> Deserialize<'de> for MCPMetrics
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 MCPMetrics
impl RefUnwindSafe for MCPMetrics
impl Send for MCPMetrics
impl Sync for MCPMetrics
impl Unpin for MCPMetrics
impl UnwindSafe for MCPMetrics
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