pub struct CostLayers { /* private fields */ }Expand description
The cost of every issue, consuming the oldest units received first.
cost-layers: FIFO consumption order is the fold, so what an issue
cost depends on which receipt arrived first, and no order exists that two
peers both hold. It is correct and it is not convergent, so it does not
implement ConvergentProjection, and
that absence is its SY-22 declaration.
Trait Implementations§
Source§impl Debug for CostLayers
impl Debug for CostLayers
Source§impl Projection for CostLayers
impl Projection for CostLayers
Source§type Store = MemoryProjectionStore
type Store = MemoryProjectionStore
The store this read model and its checkpoint live in.
Source§type Error = MemoryProjectionStoreError
type Error = MemoryProjectionStoreError
The projection’s own refusal (PS-28). Read more
Source§fn id(&self) -> &ProjectionId
fn id(&self) -> &ProjectionId
The projection’s name: which read model this is, within
Self::Store. Read moreSource§async fn apply(
&mut self,
event: Delivered<Stock>,
batch: &mut MemoryProjectionBatch,
) -> Result<(), MemoryProjectionStoreError>
async fn apply( &mut self, event: Delivered<Stock>, batch: &mut MemoryProjectionBatch, ) -> Result<(), MemoryProjectionStoreError>
Applies one delivered event into the store’s open write set. Read more
Auto Trait Implementations§
impl Freeze for CostLayers
impl RefUnwindSafe for CostLayers
impl Send for CostLayers
impl Sync for CostLayers
impl Unpin for CostLayers
impl UnsafeUnpin for CostLayers
impl UnwindSafe for CostLayers
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