pub struct ThreadCommitStagedWrites {
pub canonical_drafts: Vec<StagedCanonicalEvent>,
pub server_events: Vec<ServerCanonicalEvent>,
pub additional_outbox: Vec<OutboxMessageDraft>,
}Expand description
Event/outbox writes committed atomically with a checkpoint, supplied by
server-side writers: the runtime tee’s canonical drafts (drained from the
dispatch EventBuffer),
server-authored canonical events, and inline outbox rows.
Fields§
§canonical_drafts: Vec<StagedCanonicalEvent>§server_events: Vec<ServerCanonicalEvent>§additional_outbox: Vec<OutboxMessageDraft>Implementations§
Source§impl ThreadCommitStagedWrites
impl ThreadCommitStagedWrites
Sourcepub fn with_canonical_drafts(
self,
drafts: Vec<StagedCanonicalEvent>,
) -> ThreadCommitStagedWrites
pub fn with_canonical_drafts( self, drafts: Vec<StagedCanonicalEvent>, ) -> ThreadCommitStagedWrites
Attach staged canonical drafts (runtime tee).
Sourcepub fn with_server_events(
self,
events: Vec<ServerCanonicalEvent>,
) -> ThreadCommitStagedWrites
pub fn with_server_events( self, events: Vec<ServerCanonicalEvent>, ) -> ThreadCommitStagedWrites
Attach server-authored canonical events.
Sourcepub fn with_additional_outbox(
self,
rows: Vec<OutboxMessageDraft>,
) -> ThreadCommitStagedWrites
pub fn with_additional_outbox( self, rows: Vec<OutboxMessageDraft>, ) -> ThreadCommitStagedWrites
Attach inline-writer outbox rows.
Trait Implementations§
Source§impl Clone for ThreadCommitStagedWrites
impl Clone for ThreadCommitStagedWrites
Source§fn clone(&self) -> ThreadCommitStagedWrites
fn clone(&self) -> ThreadCommitStagedWrites
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadCommitStagedWrites
impl Debug for ThreadCommitStagedWrites
Source§impl Default for ThreadCommitStagedWrites
impl Default for ThreadCommitStagedWrites
Source§fn default() -> ThreadCommitStagedWrites
fn default() -> ThreadCommitStagedWrites
Returns the “default value” for a type. Read more
Source§impl PartialEq for ThreadCommitStagedWrites
impl PartialEq for ThreadCommitStagedWrites
Source§fn eq(&self, other: &ThreadCommitStagedWrites) -> bool
fn eq(&self, other: &ThreadCommitStagedWrites) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ThreadCommitStagedWrites
Auto Trait Implementations§
impl Freeze for ThreadCommitStagedWrites
impl RefUnwindSafe for ThreadCommitStagedWrites
impl Send for ThreadCommitStagedWrites
impl Sync for ThreadCommitStagedWrites
impl Unpin for ThreadCommitStagedWrites
impl UnsafeUnpin for ThreadCommitStagedWrites
impl UnwindSafe for ThreadCommitStagedWrites
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