def outcome

bend-kit-commands@0.4.0.0 · commands.bend:201

import bend-kit-commands@0.4.0.0/commands.bend as Commands
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

201def outcome(accepted: Bool, r: Bytes.Bytes) -> Outcome<Bytes.Bytes>:
202  match accepted:
203    case True{}:
204      Accepted{r}
205    case False{}:
206      Refused{r}

Uses (3)

Used by (1)