pub struct StreamWrite<'a> {
pub identity: StreamIdentity,
pub entity: &'a mut Entity,
}Expand description
One aggregate event stream staged for an async transactional commit.
Fields§
§identity: StreamIdentity§entity: &'a mut EntityImplementations§
Source§impl<'a> StreamWrite<'a>
impl<'a> StreamWrite<'a>
pub fn new(identity: StreamIdentity, entity: &'a mut Entity) -> Self
Auto Trait Implementations§
impl<'a> !UnwindSafe for StreamWrite<'a>
impl<'a> Freeze for StreamWrite<'a>
impl<'a> RefUnwindSafe for StreamWrite<'a>
impl<'a> Send for StreamWrite<'a>
impl<'a> Sync for StreamWrite<'a>
impl<'a> Unpin for StreamWrite<'a>
impl<'a> UnsafeUnpin for StreamWrite<'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, InMemoryAsyncLockManager>
fn queued(self) -> QueuedRepository<Self, InMemoryAsyncLockManager>
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: AsyncLockManager>(
self,
lock_manager: L,
) -> QueuedRepository<Self, L>
fn queued_with<L: AsyncLockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>
Wrap with a custom async lock manager.