pub struct InstrumentedWalWriter<W: WalWriter> { /* private fields */ }Expand description
WAL writer wrapper that records authoritative append outcomes.
This wrapper preserves the underlying writer behavior and error propagation.
It only records append success/failure totals after each append result is
known. flush and close are transparent pass-through operations.
Implementations§
Source§impl<W: WalWriter> InstrumentedWalWriter<W>
impl<W: WalWriter> InstrumentedWalWriter<W>
Sourcepub fn new(inner: W, telemetry: WalAppendTelemetry) -> Self
pub fn new(inner: W, telemetry: WalAppendTelemetry) -> Self
Wraps an inner writer with authoritative append telemetry.
Sourcepub fn telemetry(&self) -> &WalAppendTelemetry
pub fn telemetry(&self) -> &WalAppendTelemetry
Returns a shared telemetry handle.
Trait Implementations§
Source§impl<W: WalWriter> WalWriter for InstrumentedWalWriter<W>
impl<W: WalWriter> WalWriter for InstrumentedWalWriter<W>
Auto Trait Implementations§
impl<W> Freeze for InstrumentedWalWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for InstrumentedWalWriter<W>where
W: RefUnwindSafe,
impl<W> Send for InstrumentedWalWriter<W>where
W: Send,
impl<W> Sync for InstrumentedWalWriter<W>where
W: Sync,
impl<W> Unpin for InstrumentedWalWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for InstrumentedWalWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for InstrumentedWalWriter<W>where
W: UnwindSafe,
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