Skip to main content

proxima_core/ring/
mod.rs

1mod bounded;
2mod mpsc;
3
4#[cfg(feature = "alloc")]
5pub use bounded::HeapBoundedQueue;
6pub use bounded::{BoundedQueue, EnqueueOutcome, FailMode, RingStorage, StaticBoundedQueue};
7pub use mpsc::StaticRing;
8#[cfg(feature = "alloc")]
9pub use mpsc::{Drainer, Ring};
10
11/// The only failure constructing a [`Ring`]: a zero capacity.
12#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
13#[error("ring capacity must be non-zero")]
14pub struct CapacityError;