Registry / utility / object-pool

object-pool

JSON →
library0.6.0rscratesunverified

A thread-safe object pool with automatic return and attach/detach semantics.

# Cargo.toml [dependencies] object-pool = "0.6.0"
INSTALL
IMPORT
SIG · OBJECT-POOL
O
object-pool
utilityrustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pool
use object_pool::Pool;

Create a pool of integers and use an item.

use object_pool::Pool; fn main() { let pool = Pool::new(|| 0); let mut item = pool.pull().unwrap(); *item = 42; println!("Item value: {}", *item); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
object-pool — cargo add object-pool · libregistry