pub struct CalvinAppliedPayload {
pub epoch: u64,
pub position: u32,
pub vshard_id: u32,
}Expand description
Payload for super::types::RecordType::CalvinApplied.
Written by the Calvin executor after a MetaOp::CalvinExecute batch
commits successfully. Encodes { epoch, position, vshard_id } so the
scheduler’s restart path can scan the WAL and find last_applied_epoch
for a given vshard without reading the full Raft log.
Fixed little-endian encoding — no msgpack framing.
Fields§
§epoch: u64Sequencer epoch of the applied transaction.
position: u32Zero-based position within the epoch batch.
vshard_id: u32The vshard that applied this transaction.
Implementations§
Trait Implementations§
Source§impl Clone for CalvinAppliedPayload
impl Clone for CalvinAppliedPayload
Source§fn clone(&self) -> CalvinAppliedPayload
fn clone(&self) -> CalvinAppliedPayload
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 CalvinAppliedPayload
impl Debug for CalvinAppliedPayload
Source§impl PartialEq for CalvinAppliedPayload
impl PartialEq for CalvinAppliedPayload
Source§fn eq(&self, other: &CalvinAppliedPayload) -> bool
fn eq(&self, other: &CalvinAppliedPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CalvinAppliedPayload
impl Eq for CalvinAppliedPayload
impl StructuralPartialEq for CalvinAppliedPayload
Auto Trait Implementations§
impl Freeze for CalvinAppliedPayload
impl RefUnwindSafe for CalvinAppliedPayload
impl Send for CalvinAppliedPayload
impl Sync for CalvinAppliedPayload
impl Unpin for CalvinAppliedPayload
impl UnsafeUnpin for CalvinAppliedPayload
impl UnwindSafe for CalvinAppliedPayload
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