Skip to main content

finish_rotation

Function finish_rotation 

Source
pub fn finish_rotation(
    store: &Store,
    id: &str,
    r: &Rotation,
    outcome: Result<(), u8>,
    agent: &str,
) -> Result<(), String>
Expand description

Ends a rotation: Ok makes its pending value the entry’s, the value it replaces kept like any other; Err(step) keeps it, marked with the step that failed. An entry changed meanwhile is never overwritten: the pending value is kept, marked, and the rotation fails.