Struct sharded_slab::pool::Ref [−][src]
pub struct Ref<'a, T, C = DefaultConfig> where
T: Clear + Default,
C: Config, { /* fields omitted */ }
Expand description
A guard that allows access to an object in a pool.
While the guard exists, it indicates to the pool that the item the guard references is currently being accessed. If the item is removed from the pool while the guard exists, the removal will be deferred until all guards are dropped.