pub struct ContinuityRecord {
pub identity: ResonatorId,
pub presence_state: PresenceState,
pub attention_state: AttentionBudget,
pub couplings: Vec<Coupling>,
pub pending_commitments: Vec<CommitmentId>,
pub memory: Option<Vec<u8>>,
pub checkpoint_time: DateTime<Utc>,
}Expand description
Complete continuity record for a Resonator
Contains all state needed to resume a Resonator after restart.
Fields§
§identity: ResonatorIdIdentity
presence_state: PresenceStatePresence state at checkpoint
attention_state: AttentionBudgetAttention state at checkpoint
couplings: Vec<Coupling>Active couplings at checkpoint
pending_commitments: Vec<CommitmentId>Pending commitments (placeholder)
memory: Option<Vec<u8>>Memory snapshot (placeholder)
checkpoint_time: DateTime<Utc>Checkpoint timestamp
Implementations§
Source§impl ContinuityRecord
impl ContinuityRecord
Sourcepub fn new(
identity: ResonatorId,
presence_state: PresenceState,
attention_state: AttentionBudget,
couplings: Vec<Coupling>,
) -> Self
pub fn new( identity: ResonatorId, presence_state: PresenceState, attention_state: AttentionBudget, couplings: Vec<Coupling>, ) -> Self
Create a new continuity record
Sourcepub fn generate_proof(&self) -> ContinuityProof
pub fn generate_proof(&self) -> ContinuityProof
Generate proof from this record
Trait Implementations§
Source§impl Clone for ContinuityRecord
impl Clone for ContinuityRecord
Source§fn clone(&self) -> ContinuityRecord
fn clone(&self) -> ContinuityRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 ContinuityRecord
impl Debug for ContinuityRecord
Source§impl<'de> Deserialize<'de> for ContinuityRecord
impl<'de> Deserialize<'de> for ContinuityRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContinuityRecord
impl RefUnwindSafe for ContinuityRecord
impl Send for ContinuityRecord
impl Sync for ContinuityRecord
impl Unpin for ContinuityRecord
impl UnwindSafe for ContinuityRecord
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