pub struct InMemoryWalWriter { /* private fields */ }Expand description
In-memory WAL writer for deterministic testing and instrumentation.
Implementations§
Source§impl InMemoryWalWriter
impl InMemoryWalWriter
Sourcepub fn with_fsync_delay(delay: Duration) -> Self
pub fn with_fsync_delay(delay: Duration) -> Self
Create with simulated fsync delay for throughput model testing.
Sourcepub fn sync_count(&self) -> u64
pub fn sync_count(&self) -> u64
Total number of sync() calls observed.
Sourcepub fn total_appended(&self) -> u64
pub fn total_appended(&self) -> u64
Total requests appended across all batches.
Trait Implementations§
Source§impl Debug for InMemoryWalWriter
impl Debug for InMemoryWalWriter
Source§impl Default for InMemoryWalWriter
impl Default for InMemoryWalWriter
Source§impl WalBatchWriter for InMemoryWalWriter
impl WalBatchWriter for InMemoryWalWriter
Auto Trait Implementations§
impl !Freeze for InMemoryWalWriter
impl RefUnwindSafe for InMemoryWalWriter
impl Send for InMemoryWalWriter
impl Sync for InMemoryWalWriter
impl Unpin for InMemoryWalWriter
impl UnsafeUnpin for InMemoryWalWriter
impl UnwindSafe for InMemoryWalWriter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).