Skip to main content

trueno/brick/patterns/
mod.rs

1//! Async and Buffer Pattern Catalog
2//!
3//! Utility patterns from Phase 12 (E.10) for async operations,
4//! buffer management, and flow control.
5//!
6//! # Patterns Included
7//!
8//! - **LCP-12**: AsyncResult - async compute with sync fallback
9//! - **AWP-11**: BoundedQueue - bounded message queue with back-pressure
10//! - **AWP-13**: ReserveStrategy - buffer reservation strategies
11//! - **LCP-08**: GraphReuseCounter - graph reuse tracking
12//! - **AWP-03**: DualWakerState - dual-waker backpressure
13//! - **AWP-04**: StreamCapacity - HTTP/2 flow control
14//! - **AWP-09**: WakeSkipState - smart wake skip optimization
15
16#[cfg(test)]
17mod tests;
18
19mod async_result;
20mod bounded_queue;
21mod dual_waker_state;
22mod graph_reuse_counter;
23mod reserve_strategy;
24mod stream_capacity;
25mod wake_skip_state;
26
27pub use async_result::AsyncResult;
28pub use bounded_queue::BoundedQueue;
29pub use dual_waker_state::{DualWakerState, WakeDecision};
30pub use graph_reuse_counter::GraphReuseCounter;
31pub use reserve_strategy::{reserve_capacity, ReserveStrategy, StrategicBuffer};
32pub use stream_capacity::{FlowControlError, StreamCapacity};
33pub use wake_skip_state::WakeSkipState;