pub struct CursorEpisodeRestore {
pub conversation_id: ConversationId,
pub debt: WideResourceVector,
pub observer_progress: DeliverySeq,
pub candidate_high_watermark: DeliverySeq,
pub current_floor: u128,
pub cap_floor: u128,
pub participants: Vec<BoundParticipantCursor>,
pub facts: Vec<(CursorProgressKey, CursorProgressFact)>,
}Expand description
Complete raw state for one participant-scoped nonzero-debt cursor episode.
Fields§
§conversation_id: ConversationIdOwning conversation.
debt: WideResourceVectorRaw componentwise closure debt, validated nonzero during restoration.
observer_progress: DeliverySeqDurable hard-observer progress o.
candidate_high_watermark: DeliverySeqCandidate high watermark H'.
current_floor: u128Current durable floor F.
cap_floor: u128Current append-free class capacity floor.
participants: Vec<BoundParticipantCursor>Bound participant cursors keyed by their embedded permanent ids.
facts: Vec<(CursorProgressKey, CursorProgressFact)>Variable facts keyed by (participant_index, boundary).
Implementations§
Source§impl CursorEpisodeRestore
impl CursorEpisodeRestore
Sourcepub fn restore(self) -> Result<NonzeroDebtCursorEpisode, StorageRestoreError>
pub fn restore(self) -> Result<NonzeroDebtCursorEpisode, StorageRestoreError>
Validates and rebuilds one cursor episode and all variable facts.
§Errors
Returns StorageRestoreError::CursorEpisode for an invalid floor,
duplicate/unknown participant, duplicate fact, out-of-range boundary, or
fact state inconsistent with the participant cursor.
Trait Implementations§
Source§impl Clone for CursorEpisodeRestore
impl Clone for CursorEpisodeRestore
Source§fn clone(&self) -> CursorEpisodeRestore
fn clone(&self) -> CursorEpisodeRestore
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 CursorEpisodeRestore
impl Debug for CursorEpisodeRestore
impl Eq for CursorEpisodeRestore
Source§impl PartialEq for CursorEpisodeRestore
impl PartialEq for CursorEpisodeRestore
impl StructuralPartialEq for CursorEpisodeRestore
Auto Trait Implementations§
impl Freeze for CursorEpisodeRestore
impl RefUnwindSafe for CursorEpisodeRestore
impl Send for CursorEpisodeRestore
impl Sync for CursorEpisodeRestore
impl Unpin for CursorEpisodeRestore
impl UnsafeUnpin for CursorEpisodeRestore
impl UnwindSafe for CursorEpisodeRestore
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