pub struct CommitBatch<'a> {
pub streams: Vec<StreamWrite<'a>>,
pub outbox_messages: Vec<OutboxMessage>,
pub read_model_plans: Vec<TableWritePlan>,
pub snapshots: Vec<SnapshotWrite>,
pub inbox_receipts: Vec<InboxReceipt>,
}Expand description
A structured async write batch that must commit under one backend transaction.
Fields§
§streams: Vec<StreamWrite<'a>>§outbox_messages: Vec<OutboxMessage>§read_model_plans: Vec<TableWritePlan>§snapshots: Vec<SnapshotWrite>§inbox_receipts: Vec<InboxReceipt>Consumer inbox receipts to record in the same transaction (the optional effectively-once effect fence). Empty for the default idempotent path.
Implementations§
Source§impl<'a> CommitBatch<'a>
impl<'a> CommitBatch<'a>
Auto Trait Implementations§
impl<'a> !UnwindSafe for CommitBatch<'a>
impl<'a> Freeze for CommitBatch<'a>
impl<'a> RefUnwindSafe for CommitBatch<'a>
impl<'a> Send for CommitBatch<'a>
impl<'a> Sync for CommitBatch<'a>
impl<'a> Unpin for CommitBatch<'a>
impl<'a> UnsafeUnpin for CommitBatch<'a>
Blanket Implementations§
Source§impl<T> AggregateBuilder for T
impl<T> AggregateBuilder for T
fn aggregate<A: Aggregate>(self) -> AggregateRepository<Self, A>
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
Source§impl<T> Queueable for T
impl<T> Queueable for T
Source§fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>
fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>
Wrap with the default async lock manager. Pair with
.aggregate::<T>() for per-aggregate serialization over the async
repository surface.Source§fn queued_with<L: LockManager>(
self,
lock_manager: L,
) -> QueuedRepository<Self, L>
fn queued_with<L: LockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>
Wrap with a custom async lock manager.