| 24 | |
| 25 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 26 | pub struct CacheStats { |
| 27 | pub entries: u64, |
| 28 | pub hits: u64, |
| 29 | pub misses: u64, |
| 30 | pub hit_rate: f64, |
| 31 | } |
| 32 | |
| 33 | /// Wire format: [4-byte length (big-endian)][MessagePack payload] |
| 34 | pub async fn write_message<W, T>(writer: &mut W, msg: &T) -> std::io::Result<()> |
nothing calls this directly
no outgoing calls
no test coverage detected