pub struct CommitBatch<'a, M> {
pub partition: PartitionKey,
pub record_count: i32,
pub location: BatchLocation,
pub meta: &'a M,
pub epoch: u64,
}Expand description
One batch presented to Sequencer::commit. The engine fills partition,
record_count, and location (all engine-visible); meta is forwarded
uninterpreted — only the sequencer reads it.
Fields§
§partition: PartitionKeyThe offset stream this batch belongs to.
record_count: i32Number of records in the batch (offsets advance by this).
location: BatchLocationWhere the batch lives in its (already-durable) object.
meta: &'a MSequencer-private metadata (e.g. idempotent-producer identity). Opaque to the engine.
epoch: u64Fence epoch the caller believes owns this partition. ManifestSequencer
rejects the batch when the stored index epoch differs. Other sequencers
ignore it.
Auto Trait Implementations§
impl<'a, M> Freeze for CommitBatch<'a, M>
impl<'a, M> RefUnwindSafe for CommitBatch<'a, M>where
&'a M: RefUnwindSafe,
impl<'a, M> Send for CommitBatch<'a, M>
impl<'a, M> Sync for CommitBatch<'a, M>
impl<'a, M> Unpin for CommitBatch<'a, M>
impl<'a, M> UnsafeUnpin for CommitBatch<'a, M>where
&'a M: UnsafeUnpin,
impl<'a, M> UnwindSafe for CommitBatch<'a, M>where
&'a M: UnwindSafe,
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