pub struct CursorProgressFacts { /* private fields */ }Expand description
Variable participant-scoped cursor facts; no fixed occurrence array exists.
Implementations§
Source§impl CursorProgressFacts
impl CursorProgressFacts
Sourcepub fn record(&mut self, key: CursorProgressKey) -> bool
pub fn record(&mut self, key: CursorProgressKey) -> bool
Inserts an independently fireable (participant_index, boundary) fact.
Returns true only when the exact pair was not already present.
Sourcepub fn consume_through(
&mut self,
participant_index: ParticipantIndex,
through: DeliverySeq,
) -> Vec<CursorProgressKey>
pub fn consume_through( &mut self, participant_index: ParticipantIndex, through: DeliverySeq, ) -> Vec<CursorProgressKey>
Marks every pending boundary at or below through consumed for one
participant, without touching another participant’s identical boundary.
Sourcepub fn get(&self, key: CursorProgressKey) -> Option<CursorProgressFact>
pub fn get(&self, key: CursorProgressKey) -> Option<CursorProgressFact>
Returns one exact fact state.
Sourcepub fn encode(&self) -> Result<Vec<u8>, CursorFactEncodeError>
pub fn encode(&self) -> Result<Vec<u8>, CursorFactEncodeError>
Deterministically serializes the variable map in key order.
Format: count:u32, followed by participant_index:u64,
boundary:u64, and state:u8 (0 Pending, 1 Consumed) per fact.
This is lifecycle storage, not the participant network frame format.
§Errors
Returns CursorFactEncodeError if count or allocation length cannot be
represented.
Trait Implementations§
Source§impl Clone for CursorProgressFacts
impl Clone for CursorProgressFacts
Source§fn clone(&self) -> CursorProgressFacts
fn clone(&self) -> CursorProgressFacts
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 CursorProgressFacts
impl Debug for CursorProgressFacts
Source§impl Default for CursorProgressFacts
impl Default for CursorProgressFacts
Source§fn default() -> CursorProgressFacts
fn default() -> CursorProgressFacts
Returns the “default value” for a type. Read more
impl Eq for CursorProgressFacts
Source§impl PartialEq for CursorProgressFacts
impl PartialEq for CursorProgressFacts
impl StructuralPartialEq for CursorProgressFacts
Auto Trait Implementations§
impl Freeze for CursorProgressFacts
impl RefUnwindSafe for CursorProgressFacts
impl Send for CursorProgressFacts
impl Sync for CursorProgressFacts
impl Unpin for CursorProgressFacts
impl UnsafeUnpin for CursorProgressFacts
impl UnwindSafe for CursorProgressFacts
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