pub struct InMemoryCommitRepairIo { /* private fields */ }Expand description
In-memory IO sink useful for deterministic testing/instrumentation.
Implementations§
Source§impl InMemoryCommitRepairIo
impl InMemoryCommitRepairIo
pub fn total_repair_bytes(&self) -> u64
pub fn repair_sync_count(&self) -> u64
pub fn systematic_sync_count(&self) -> u64
pub fn repair_symbols_for(&self, commit_seq: u64) -> Option<Vec<u8>>
Trait Implementations§
Source§impl CommitRepairIo for InMemoryCommitRepairIo
impl CommitRepairIo for InMemoryCommitRepairIo
fn append_systematic_symbols( &self, commit_seq: u64, systematic_symbols: &[u8], ) -> Result<()>
fn sync_systematic_symbols(&self, _commit_seq: u64) -> Result<()>
fn append_repair_symbols( &self, commit_seq: u64, repair_symbols: &[u8], ) -> Result<()>
fn sync_repair_symbols(&self, _commit_seq: u64) -> Result<()>
Source§impl Debug for InMemoryCommitRepairIo
impl Debug for InMemoryCommitRepairIo
Source§impl Default for InMemoryCommitRepairIo
impl Default for InMemoryCommitRepairIo
Source§fn default() -> InMemoryCommitRepairIo
fn default() -> InMemoryCommitRepairIo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryCommitRepairIo
impl RefUnwindSafe for InMemoryCommitRepairIo
impl Send for InMemoryCommitRepairIo
impl Sync for InMemoryCommitRepairIo
impl Unpin for InMemoryCommitRepairIo
impl UnsafeUnpin for InMemoryCommitRepairIo
impl UnwindSafe for InMemoryCommitRepairIo
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).