proxima-core 0.1.0

Foundation primitives for the proxima workspace: error, ring, arena, time, markers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod bounded;
mod mpsc;

#[cfg(feature = "alloc")]
pub use bounded::HeapBoundedQueue;
pub use bounded::{BoundedQueue, EnqueueOutcome, FailMode, RingStorage, StaticBoundedQueue};
pub use mpsc::StaticRing;
#[cfg(feature = "alloc")]
pub use mpsc::{Drainer, Ring};

/// The only failure constructing a [`Ring`]: a zero capacity.
#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
#[error("ring capacity must be non-zero")]
pub struct CapacityError;