pub struct TemporalCoordinator { /* private fields */ }Expand description
Temporal Coordinator manages temporal relationships without global clocks
Implementations§
Source§impl TemporalCoordinator
impl TemporalCoordinator
pub fn new(config: &TemporalCoordinatorConfig) -> Self
Sourcepub fn anchor(
&self,
event: &ResonanceEvent,
resonator: ResonatorId,
) -> TemporalAnchor
pub fn anchor( &self, event: &ResonanceEvent, resonator: ResonatorId, ) -> TemporalAnchor
Create a temporal anchor for an event
This enables causal ordering without relying on global clocks.
Sourcepub fn causal_order(
&self,
a: &TemporalAnchor,
b: &TemporalAnchor,
) -> Option<Ordering>
pub fn causal_order( &self, a: &TemporalAnchor, b: &TemporalAnchor, ) -> Option<Ordering>
Determine causal ordering between events
Returns None if events are concurrent (no causal relationship)
Sourcepub fn get_anchor(&self, id: &AnchorId) -> Option<TemporalAnchor>
pub fn get_anchor(&self, id: &AnchorId) -> Option<TemporalAnchor>
Get an anchor by ID
Sourcepub fn are_concurrent(&self, a: &TemporalAnchor, b: &TemporalAnchor) -> bool
pub fn are_concurrent(&self, a: &TemporalAnchor, b: &TemporalAnchor) -> bool
Check if two events are concurrent
Auto Trait Implementations§
impl Freeze for TemporalCoordinator
impl !RefUnwindSafe for TemporalCoordinator
impl Send for TemporalCoordinator
impl Sync for TemporalCoordinator
impl Unpin for TemporalCoordinator
impl !UnwindSafe for TemporalCoordinator
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