def Bytes.options.rejected
mylsm-lsm-store@0.6.0.1 · mylsm.bend:484
import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm
import Base
import mylsm-lsm-store@0.6.0.1/src/ByteDurableDb.bend as RawByteDb
484def Bytes.options.rejected(
485 handle: Bytes.Handle
486) -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>):
487 match handle:
488 case ByteHandle{raw}:
489 do IO<Result<&1, &1, Bytes.Error, Bytes.Handle>>:
490 _closed : Result<&1, &1, RawByteDb.Error, Unit> <- RawByteDb.close(raw)
491 return Fail{InvalidArgument{}}
492 case RemoteByteHandle{_}:
493 IO.pure(Result<&1, &1, Bytes.Error, Bytes.Handle>,
494 Fail{InvalidArgument{}})