Struct piscina::priority::PooledItem
source · pub struct PooledItem<T, P> { /* private fields */ }
Expand description
An item that is borrowed from a PriorityPool
.
Dropping this item will return it to the pool.
Implementations§
source§impl<T, P> PooledItem<T, P>
impl<T, P> PooledItem<T, P>
sourcepub fn priority_mut(&mut self) -> &mut P
pub fn priority_mut(&mut self) -> &mut P
Returns a mutable reference to the priority.