pub struct Clock { /* private fields */ }Expand description
The collective’s activity clock: its sessions in the order they first appear in the outcome log
(by first ms, then id: independent of line order). Only the kinds the team shares
(outcome.rs SHARED_KINDS) tick it, so every node counts the same sessions from the same first
ms: a session that only graded never moves it, and neither does a tested result (about the
session’s work).
Implementations§
Source§impl Clock
impl Clock
pub fn of(outcomes: &[Outcome]) -> Self
Sourcepub fn eligible(&self, c: &Challenge) -> Option<Vec<u64>>
pub fn eligible(&self, c: &Challenge) -> Option<Vec<u64>>
The ticks of the sessions c counts its disuse in, ascending, or None for every tick: a repo
convention’s are the sessions with a line in its repo, matched ignoring case as reach.rs
deliverable does or, in the team view, by its exact tag; any other reach’s are all of them.
Sourcepub fn now(&self, session: Option<&str>) -> u64
pub fn now(&self, session: Option<&str>) -> u64
The tick of session: its place on the clock, or the next tick for a session not in the log
(or none given).
Sourcepub fn of_session(&self, session: &str) -> u64
pub fn of_session(&self, session: &str) -> u64
The tick of a session.