MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_turn

Function get_turn

libatomic/src/daemon/provenance_core.rs:432–438  ·  view source on GitHub ↗

Turn status (the read side of the lifecycle).

(
    store: &RedbChangeStore,
    session_id: &str,
    turn_number: u32,
)

Source from the content-addressed store, hash-verified

430
431/// Turn status (the read side of the lifecycle).
432pub fn get_turn(
433 store: &RedbChangeStore,
434 session_id: &str,
435 turn_number: u32,
436) -> Result<Option<StoredProvenanceTurn>, JournalError> {
437 lifecycle_lookup(store, session_id, turn_number)
438}
439
440#[cfg(test)]
441mod tests {

Callers 1

get_turn_implFunction · 0.85

Calls 1

lifecycle_lookupFunction · 0.85

Tested by

no test coverage detected