MCPcopy Create free account
hub / github.com/aws/clock-bound / Buffer

Class Buffer

clock-bound/src/daemon/async_ring_buffer.rs:202–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200/// Shared data between the paired [`Tx`] and [`Rx`]
201#[derive(Debug)]
202struct Buffer<T> {
203 data: VecDeque<T>,
204 capacity: usize,
205 sender_dropped: bool,
206 receiver_dropped: bool,
207 disruption_handled: Option<Side>,
208}
209
210impl<T> Buffer<T> {
211 fn new(capacity: usize) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected