pub struct EventQuery<'a> { /* private fields */ }Expand description
Query handle for an Event node in the chronicle graph.
Provides methods to inspect participants, location, causal chains, consequences, and state changes.
Implementations§
Source§impl<'a> EventQuery<'a>
impl<'a> EventQuery<'a>
Sourcepub fn participants(&self) -> Vec<&'a Participant>
pub fn participants(&self) -> Vec<&'a Participant>
All participants in this event.
Sourcepub fn participants_by_role(&self, role: Role) -> Vec<&'a Participant>
pub fn participants_by_role(&self, role: Role) -> Vec<&'a Participant>
Participants filtered by role.
Sourcepub fn causal_chain(&self) -> Vec<&'a Event>
pub fn causal_chain(&self) -> Vec<&'a Event>
Full causal chain backward (BFS through caused_by).
Sourcepub fn consequences(&self) -> Vec<&'a Event>
pub fn consequences(&self) -> Vec<&'a Event>
Events caused by this one (forward consequences via CausedBy edges).
Sourcepub fn state_changes(&self) -> &[EventStateChange]
pub fn state_changes(&self) -> &[EventStateChange]
State changes produced by this event.
Auto Trait Implementations§
impl<'a> Freeze for EventQuery<'a>
impl<'a> RefUnwindSafe for EventQuery<'a>
impl<'a> Send for EventQuery<'a>
impl<'a> Sync for EventQuery<'a>
impl<'a> Unpin for EventQuery<'a>
impl<'a> UnsafeUnpin for EventQuery<'a>
impl<'a> UnwindSafe for EventQuery<'a>
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