Skip to main content

chio_bounded/
lib.rs

1//! Reusable bounded in-memory collections for Chio serving processes.
2//!
3//! Core invariant: no long-lived collection in a serving process may exist
4//! without (1) a capacity policy (ring, LRU, idle-sweep, or deny-at-cap) and
5//! (2) a live size metric. This crate is the substrate: `Ring` and `BoundedMap`
6//! each own a cloneable `SizeGauge`.
7
8mod bounded_map;
9mod gauge;
10mod ring;
11mod sync;
12
13pub use bounded_map::BoundedMap;
14pub use gauge::SizeGauge;
15pub use ring::Ring;