pub struct BufferedWriterSnapshot<E> {
pub state: BufferedWriterState,
pub queued: usize,
pub direct_pending: usize,
pub persisted: u64,
pub direct_persisted: u64,
pub observer_events_dropped: u64,
pub batch_failure: Option<WriteFailure<E>>,
pub batch_failure_records: usize,
pub direct_failure: Option<WriteFailure<E>>,
}Expand description
Observable per-instance state. Counts include in-flight, unacknowledged records.
Fields§
§state: BufferedWriterStateCurrent admission/worker lifecycle.
queued: usizeUnacknowledged batch records, including any in-flight chunk.
direct_pending: usizeUnacknowledged overflow records (zero or one).
persisted: u64Total acknowledged records across both lanes.
direct_persisted: u64Acknowledged overflow records only; does not imply batch durability.
observer_events_dropped: u64Events dropped because the bounded observer channel was full or closed.
batch_failure: Option<WriteFailure<E>>Failure blocking the front chunk; originals remain in queue order.
batch_failure_records: usizeFront records affected by batch_failure; later queued records were not attempted.
direct_failure: Option<WriteFailure<E>>Failure blocking the retained overflow record.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for BufferedWriterSnapshot<E>
impl<E> RefUnwindSafe for BufferedWriterSnapshot<E>where
E: RefUnwindSafe,
impl<E> Send for BufferedWriterSnapshot<E>
impl<E> Sync for BufferedWriterSnapshot<E>
impl<E> Unpin for BufferedWriterSnapshot<E>
impl<E> UnsafeUnpin for BufferedWriterSnapshot<E>
impl<E> UnwindSafe for BufferedWriterSnapshot<E>where
E: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more