nntp-proxy 0.5.1

NNTP proxy server with per-command backend multiplexing, caching, metrics, and TUI dashboard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::types::{AvailableConnections, CreatedConnections, MaxPoolSize};

/// Generic connection pool status information
#[derive(Debug, Clone)]
pub struct PoolStatus {
    pub available: AvailableConnections,
    pub max_size: MaxPoolSize,
    pub created: CreatedConnections,
}

/// Trait for connection management - makes it easy to swap implementations
pub trait ConnectionProvider: Send + Sync + Clone + std::fmt::Debug {
    /// Get current pool status for monitoring
    fn status(&self) -> PoolStatus;
}