def show_act

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

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
import bend-osdev-bpf@0.1.0.0/seccomp.bend as S

23def show_act(r: Result<&2, &2, I.BpfError, S.SeccompAction>) -> String:
24  match r:
25    case Fail{e}:
26      "error: " ++ I.BpfError.show(e)
27    case Done{a}:
28      S.SeccompAction.show(a)

Uses (7)

Used by (2)