Skip to main content

Module resource

Module resource 

Source
Expand description

Stratum 8 — Resource Management

Safe acquisition and release of resources, built from Strata 0–7.

SubmoduleProvidesDepends on
scopeScope, FinalizerStratum 12 (stm::{TRef, commit}), Stratum 9 (latch::Latch), Stratum 6 (runtime), Stratum 4 (failure)
poolPool, KeyedPoolscope, Stratum 9 (coordination)
cacheCache, CacheStatsStratum 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.