proxima_primitives/pipe/bounded.rs
1//! `BoundedQueue<T>` — the alloc-tier bounded queue, re-exported from
2//! [`proxima_core::ring`].
3//!
4//! The type and its overflow algorithm moved to `proxima-core` so the same
5//! `FailMode` policy drives both the heap [`Ring`](proxima_core::ring::Ring)
6//! (this alias) and the no-alloc
7//! [`StaticRing`](proxima_core::ring::StaticRing) tiers from one implementation.
8//! `SinkFront` and the recording/telemetry sinks compose this alias unchanged.
9
10pub use proxima_core::ring::{EnqueueOutcome, FailMode};
11
12/// A heap-backed bounded queue with a [`FailMode`] overflow policy — the alloc
13/// tier of [`proxima_core::ring::BoundedQueue`]. `BoundedQueue::new(capacity,
14/// fail_mode)` is unchanged; the no-alloc peer is
15/// [`proxima_core::ring::StaticBoundedQueue`].
16pub type BoundedQueue<T> = proxima_core::ring::HeapBoundedQueue<T>;