pub struct ServerEntry {
pub server: Arc<Box<dyn McpServer>>,
pub weight: u32,
pub health: ServerHealth,
pub active_connections: Arc<AtomicU64>,
pub request_count: Arc<AtomicU64>,
pub error_count: Arc<AtomicU64>,
pub avg_response_time_ms: Arc<AtomicU64>,
pub last_health_check: Option<Instant>,
pub group: Option<String>,
pub tags: Vec<String>,
}Expand description
Server entry with metadata for load balancing
Fields§
§server: Arc<Box<dyn McpServer>>The actual MCP server
weight: u32Server weight for weighted load balancing
health: ServerHealthCurrent health status
active_connections: Arc<AtomicU64>Number of active connections
request_count: Arc<AtomicU64>Total request count
error_count: Arc<AtomicU64>Total error count
avg_response_time_ms: Arc<AtomicU64>Average response time in milliseconds
last_health_check: Option<Instant>Last health check time
group: Option<String>Server group for affinity
Tags for filtering
Trait Implementations§
Source§impl Clone for ServerEntry
impl Clone for ServerEntry
Source§fn clone(&self) -> ServerEntry
fn clone(&self) -> ServerEntry
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 moreAuto Trait Implementations§
impl Freeze for ServerEntry
impl !RefUnwindSafe for ServerEntry
impl Send for ServerEntry
impl Sync for ServerEntry
impl Unpin for ServerEntry
impl !UnwindSafe for ServerEntry
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