anchored_pool/
lib.rs

1// See https://linebender.org/blog/doc-include for this README inclusion strategy
2// File links are not supported by rustdoc
3//!
4//! [LICENSE-APACHE]: https://github.com/robofinch/anchored-leveldb/blob/main/LICENSE-APACHE
5//! [LICENSE-MIT]: https://github.com/robofinch/anchored-leveldb/blob/main/LICENSE-MIT
6//!
7#![cfg_attr(feature = "clone-behavior", doc = " [`clone-behavior`]: clone_behavior")]
8#![cfg_attr(feature = "kanal", doc = " [`kanal`]: kanal")]
9#![cfg_attr(feature = "crossbeam-channel", doc = " [`crossbeam-channel`]: crossbeam_channel")]
10//!
11//! <style>
12//! .rustdoc-hidden { display: none; }
13//! </style>
14#![cfg_attr(doc, doc = include_str!("../README.md"))]
15
16mod bounded;
17mod shared_bounded;
18mod unbounded;
19mod shared_unbounded;
20
21mod pooled_resource;
22mod other_utils;
23
24mod buffer_pools;
25
26mod channel;
27
28// TODO: provide an option for unbounded pools to limit the number of unused items,
29// and drop items which would push the unused items over the limit.
30
31pub use self::{
32    bounded::BoundedPool,
33    shared_bounded::SharedBoundedPool,
34    shared_unbounded::SharedUnboundedPool,
35    unbounded::UnboundedPool,
36};
37pub use self::{
38    buffer_pools::{
39        BoundedBufferPool, SharedBoundedBufferPool,
40        SharedUnboundedBufferPool, UnboundedBufferPool,
41    },
42    other_utils::{OutOfBuffers, ResetBuffer, ResetNothing, ResetResource, ResourcePoolEmpty},
43    pooled_resource::{PooledBuffer, PooledResource},
44};