pub struct TemporalAnchor {
pub id: AnchorId,
pub local_time: LocalTimestamp,
pub causal_deps: Vec<AnchorId>,
pub commitment: Option<CommitmentId>,
}Expand description
A temporal anchor - any event that allows ordering interactions
Temporal anchors enable causal ordering without global clocks.
Fields§
§id: AnchorIdUnique identifier
local_time: LocalTimestampLocal timestamp (for this Resonator only)
This is NOT a global timestamp - it’s only meaningful within the context of a single Resonator’s timeline.
causal_deps: Vec<AnchorId>Causal dependencies (what happened before this)
This is what enables causal ordering across Resonators.
commitment: Option<CommitmentId>Associated commitment (if any)
Implementations§
Trait Implementations§
Source§impl Clone for TemporalAnchor
impl Clone for TemporalAnchor
Source§fn clone(&self) -> TemporalAnchor
fn clone(&self) -> TemporalAnchor
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 TemporalAnchor
impl Debug for TemporalAnchor
Source§impl<'de> Deserialize<'de> for TemporalAnchor
impl<'de> Deserialize<'de> for TemporalAnchor
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 TemporalAnchor
impl RefUnwindSafe for TemporalAnchor
impl Send for TemporalAnchor
impl Sync for TemporalAnchor
impl Unpin for TemporalAnchor
impl UnwindSafe for TemporalAnchor
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