Skip to main content

Module pin_asks

Module pin_asks 

Source
Expand description

An agent’s ask to move or forget one pin, waiting for the person (app_api::pin_ask).

A pin says which key or install may speak under an agent’s name, so changing one is the person’s: the pins screen, or one click on a card in the asking agent’s own pane. srv builds each ask from its own record of the pin, never from words the agent wrote, and keeps it here; the window shows it as a card. The person’s answer reaches srv only through the window (pins.ask.answer), takes the ask whole by its id, and carries nothing else: what is changed is what the card showed, and an agent can neither answer nor change an ask that is waiting.

An ask nobody answers ends after OPEN_MS and counts as a no. A no is remembered for SETTLED_MS, so the same change is not asked again at once.

Structs§

Asks
PinAsk
One pin change an agent asked the person for.

Enums§

Asked
What an ask comes to.
Outcome
How an ask ended.

Constants§

OPEN_MS
An ask nobody answers ends after this long, as a no.
SETTLED_MS
How long how an ask ended is remembered; a no also keeps the same change from being asked again for this long.

Functions§

asks