Skip to main content

CostLayersFixture

Struct CostLayersFixture 

Source
pub struct CostLayersFixture;
Expand description

CostLayers over the same two sites: the honest non-convergent case SY-22 excludes.

A ConvergenceFixture, so the machinery the rule uses can run it, and not one the rule accepts: its projection makes no convergence declaration. non_convergent_projections_are_excluded_not_failed is where both facts are held.

Implementations§

Source§

impl CostLayersFixture

Source

pub const fn new() -> Self

The fixture. It holds nothing; every projection and store it builds is fresh.

Trait Implementations§

Source§

impl ConvergenceFixture for CostLayersFixture

Source§

type Projection = CostLayers

The projection under test, in either flavour.
Source§

type Codec = Postcard

The codec its events are written with.
Source§

fn projection(&self) -> CostLayers

A fresh projection, in the state it starts a rebuild in.
Source§

fn codec(&self) -> &Postcard

The codec the rule encodes the events with and the runner decodes them with.
Source§

fn authored(&self) -> [Vec<Stock>; 2]

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>

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>

The read model store holds, as bytes the rule compares. Read more
Source§

impl Debug for CostLayersFixture

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CostLayersFixture

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V