Files
moli/moli-bounded-buffer/src/lib.rs
T
2026-08-11 00:10:12 +08:00

13 lines
397 B
Rust

//! An insertion-ordered key/value buffer with explicit byte budgets.
//!
//! Callers provide each value's logical byte charge. Evicted and rejected
//! values are returned so the owning subsystem can preserve its own metadata
//! or terminal state without this crate depending on that policy.
mod buffer;
pub use buffer::{BoundedByteBuffer, ByteLimits, InsertOutcome};
#[cfg(test)]
mod tests;