Struct Graph Event Consumer
pub struct GraphEventConsumer { /* private fields */ }Expand description
Unique consumer with preallocated retained batch storage. A borrowed batch stays pending until explicit acknowledgement; dropping its borrow does not imply delivery or discard. Endpoints/storage drop after owners stop.
Implementations§
§impl GraphEventConsumer
impl GraphEventConsumer
pub fn next_batch(&mut self) -> Option<GraphEventBatch<'_>>
pub fn next_batch(&mut self) -> Option<GraphEventBatch<'_>>
Return the retained batch, or dequeue one atomically published batch. No pending batch is replaced; caller acknowledges only after consuming or explicitly discarding it under its own graph fault/recovery policy.
pub fn producer_disconnected(&self) -> bool
pub fn producer_disconnected(&self) -> bool
Producer teardown does not discard any retained/queued batches.