def sasl.verified

bend-kit-postgres@0.3.0.0 · postgres.bend:255

import bend-kit-postgres@0.3.0.0/postgres.bend as Postgres
import Base
import bend-kit-postgres@0.3.0.0/codec.bend as Codec

255def sasl.verified(c: Conn, v: Result<&1, &1, U32 & String, Unit>) -> IO(Result<&1, &1, Failure, Conn>):
256  match v:
257    case Fail{(code, why)}:
258      abort(Conn, c, Auth{why})
259    case Done{u}:
260      do IO<Result<&1, &1, Failure, Conn>>:
261        m : Result<&1, &1, Failure, Conn & Codec.Back> <- read(c)
262        auth.done(m)

Uses (14)

Used by (1)