pub struct MemorySyncFixture { /* private fields */ }Expand description
The reference SyncFixture, over [MemorySyncPeer].
Every rule is proven against this before it is allowed to fail an adapter:
a rule red here is a wrong rule, not a wrong peer. Each instance owns one
in-memory peer and each connect is a new handle
onto it.
Implementations§
Trait Implementations§
Source§impl Clone for MemorySyncFixture
impl Clone for MemorySyncFixture
Source§impl Debug for MemorySyncFixture
impl Debug for MemorySyncFixture
Source§impl Default for MemorySyncFixture
impl Default for MemorySyncFixture
Source§impl SyncFixture for MemorySyncFixture
impl SyncFixture for MemorySyncFixture
Source§const REOPEN: Capability
const REOPEN: Capability
Declined, by incapacity: the reference peer’s log is process memory,
so a reopen would read back nothing or everything, never what was
durable. tests/wrong_reopens.rs proves the rule’s reopen half instead.
Source§async fn refusals(&self, peer: &Self::Peer) -> RefusalsOf<Self::Peer>
async fn refusals(&self, peer: &Self::Peer) -> RefusalsOf<Self::Peer>
The one refusal the reference peer can be driven into from outside.
[MemoryPeerError::Poisoned] is its other, and provoking it takes a
thread that panics while holding the peer’s lock: not something a
fixture should do to the peer a suite is about to use.
Source§async fn compact_recorded_before(
&self,
peer: &Self::Peer,
cutoff: RecordedAt,
) -> Result<(), Violation>
async fn compact_recorded_before( &self, peer: &Self::Peer, cutoff: RecordedAt, ) -> Result<(), Violation>
[MemorySyncPeer::compact_recorded_before] on the peer behind peer.
Source§const COMPACTION: Capability = Capability::SUPPORTED
const COMPACTION: Capability = Capability::SUPPORTED
retention_gap_is_reported_not_silent,
needs it, and reports Skipped
with the stated reason when it is declined. Read more