Expand description
Stratum 8 — Resource Management
Safe acquisition and release of resources, built from Strata 0–7.
| Submodule | Provides | Depends on |
|---|---|---|
scope | Scope, Finalizer | Stratum 12 (stm::{TRef, commit}), Stratum 9 (latch::Latch), Stratum 6 (runtime), Stratum 4 (failure) |
pool | Pool, KeyedPool | scope, Stratum 9 (coordination) |
cache | Cache, CacheStats | Stratum 9 (coordination), Stratum 14 (collections) |
§Public API
Re-exported at the crate root: Scope, Finalizer, Pool, KeyedPool, Cache, CacheStats.
Re-exports§
pub use cache::Cache;pub use cache::CacheStats;pub use pool::KeyedPool;pub use pool::Pool;pub use scope::Finalizer;pub use scope::Scope;
Modules§
- cache
- Effectful memoization with TTL, capacity (LRU), miss coalescing via
crate::Deferred. - pool
- Managed resource pools — capacity gate, idle reuse, optional TTL, invalidation.
- scope
- Scope lifecycle primitives for structured resource management.