def encode.fin

bendonnect-rpc@0.1.0.0 · src/pb.bend:375

import bendonnect-rpc@0.1.0.0/src/pb.bend as Pb
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
import bend-kit-protobuf@0.1.0.0/protobuf.bend as Pb

375def encode.fin(r: Result<&2, &1, Pb.Error, Bytes.Bytes>) -> Bytes.Bytes:
376  match r:
377    case Fail{e}:
378      Bytes.new(0)
379    case Done{b}:
380      b

Uses (4)

Used by (1)