pub(crate) fn may_retake(
block: &Block,
block_id: &str,
agent_id: &str,
since_input: Option<Duration>,
) -> Result<(), String>Expand description
May agent_id drive block (block_id) again, the pane it lost to the person’s Take over? Yes once the person
gave the pane back (remembered in memory and in the block’s meta, which outlives an srv restart), or took it over
during the agent’s own hand-off, or has not used the pane for IDLE_BEFORE_RETAKE; a pane the person is still
using is refused with what to do. since_input is how long ago the host last saw the person use the pane’s page:
Duration::MAX when it never has, None when the host could not say (then only Give back counts). The caller then
writes the owner meta (retaken_meta) and records the agent (record).