def show_ok

bend-osdev-bpf@0.1.0.0 · check.bend:16

import bend-osdev-bpf@0.1.0.0/check.bend as Check
import Base
import bend-osdev-bpf@0.1.0.0/insn.bend as I

16def show_ok(r: Result<&2, &2, I.BpfError, Unit>) -> String:
17  match r:
18    case Fail{e}:
19      "error: " ++ I.BpfError.show(e)
20    case Done{u}:
21      "ok"

Uses (6)

Used by (2)