def scan.one

ezx@1.11.0.0 · src/lock/plan.bend:1113

import ezx@1.11.0.0/src/lock/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/world.bend as W

1113# an answer as far as `wants` needs it: the texts it may import from, taken
1114# as they are and not checked, or the miss
1115def scan.one(+hash: String, +hub: String, answer: W.Answer) -> W.Verdict:
1116  match answer:
1117    case W.Miss{why}:
1118      W.No{why}
1119    case W.Got{_how, _manifest, ss}:
1120      W.Ok{[], ss}
1121    case W.Said{text}:
1122      W.said(hash, hub, text)
1123    case W.Locked{text}:
1124      W.locked(text)

Uses (6)

Used by (1)