Skip to main content

release_kept_move

Function release_kept_move 

Source
pub(super) async fn release_kept_move(
    state: &AppState,
    actor: &Actor,
    req: &HandoverRequest,
) -> Result<(), Refusal>
Expand description

Before bring_back clears the mark of an agent whose move stopped: the destination is asked to end that move, because it may have registered the agent with only its answer lost, and the agent would then live in both places. The agent comes back only when the destination says the move is ended (it holds nothing of it any more) or when force says it is not there; a destination that cannot be reached, or that already placed the agent, keeps it handed over. The kept archive is removed.