pub struct CommitSubscription { /* private fields */ }Expand description
One waiter on a handle’s commits: a live query’s, a change watch’s, or the host’s own.
Implementations§
Source§impl CommitSubscription
impl CommitSubscription
Sourcepub fn state(&self) -> CommitState
pub fn state(&self) -> CommitState
The state now, without marking it seen.
Sourcepub fn observe(&mut self) -> CommitState
pub fn observe(&mut self) -> CommitState
Returns the current state and marks it as seen, so changed waits for a
later state.
Sourcepub fn begin(&self)
pub fn begin(&self)
Start keeping the commits a run meets, until it finishes. Meanwhile a write records the values the scopes this subscription went by until now test.
Sourcepub fn stop(&self)
pub fn stop(&self)
Wait on nothing, whatever this subscription was doing: its query ended on a bug, so what its run read is unknown (E15).
Sourcepub fn finish(&self, reads: ReadSet)
pub fn finish(&self, reads: ReadSet)
Wait on reads, which join no table: no commit needs a lookup.
Sourcepub fn finish_judging(
&self,
reads: ReadSet,
lookups: &mut Lookups<'_>,
) -> Result<()>
pub fn finish_judging( &self, reads: ReadSet, lookups: &mut Lookups<'_>, ) -> Result<()>
Wait on reads, a run’s. The commits made while it ran are judged
against them, with lookups reading the run’s own snapshot: a value
matches a join there exactly when the run’s partners held it. A
lookup that fails marks the query to run again, and its error is
the run’s.