#[non_exhaustive]pub enum MemoryFault {
ApplyBefore,
ApplyAfterCommit,
BlobWrite(u32),
BlobCommit,
}Expand description
A one-shot failure a memory store injects, for tests of the layers above. Each store fires only the faults that apply to it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ApplyBefore
The next apply fails before it checks anything; nothing is
written.
ApplyAfterCommit
The next apply commits, then reports an error: the ambiguous
outcome of a connection lost after commit.
BlobWrite(u32)
The nth (0-based) PackSink::write of the next upload fails.
BlobCommit
The next PackSink::commit fails before anything becomes visible.
Trait Implementations§
Source§impl Clone for MemoryFault
impl Clone for MemoryFault
impl Copy for MemoryFault
Source§impl Debug for MemoryFault
impl Debug for MemoryFault
impl Eq for MemoryFault
Source§impl PartialEq for MemoryFault
impl PartialEq for MemoryFault
impl StructuralPartialEq for MemoryFault
Auto Trait Implementations§
impl Freeze for MemoryFault
impl RefUnwindSafe for MemoryFault
impl Send for MemoryFault
impl Sync for MemoryFault
impl Unpin for MemoryFault
impl UnsafeUnpin for MemoryFault
impl UnwindSafe for MemoryFault
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