pub struct StockOnHandFixture;Expand description
StockOnHand over two sites: the declared case SY-20’s rule is proven
against before it may fail anyone’s projection.
Implementations§
Trait Implementations§
Source§impl ConvergenceFixture for StockOnHandFixture
impl ConvergenceFixture for StockOnHandFixture
Source§type Projection = StockOnHand
type Projection = StockOnHand
The projection under test, in either flavour.
Source§fn projection(&self) -> StockOnHand
fn projection(&self) -> StockOnHand
A fresh projection, in the state it starts a rebuild in.
Source§fn codec(&self) -> &Postcard
fn codec(&self) -> &Postcard
The codec the rule encodes the events with and the runner decodes
them with.
The events each origin authored, in authorship order: origin one’s,
then origin two’s. Read more
Source§async fn store(&self) -> Result<MemoryProjectionStore, Violation>
async fn store(&self) -> Result<MemoryProjectionStore, Violation>
A fresh, empty store that shares nothing with any other it returned. Read more
Source§async fn read_model(
&self,
store: &MemoryProjectionStore,
) -> Result<Vec<u8>, Violation>
async fn read_model( &self, store: &MemoryProjectionStore, ) -> Result<Vec<u8>, Violation>
The read model
store holds, as bytes the rule compares. Read moreSource§impl Debug for StockOnHandFixture
impl Debug for StockOnHandFixture
Auto Trait Implementations§
impl Freeze for StockOnHandFixture
impl RefUnwindSafe for StockOnHandFixture
impl Send for StockOnHandFixture
impl Sync for StockOnHandFixture
impl Unpin for StockOnHandFixture
impl UnsafeUnpin for StockOnHandFixture
impl UnwindSafe for StockOnHandFixture
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