def Bytes.backup_to.result

mylsm-lsm-store@0.6.0.1 · mylsm.bend:1106

import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm
import Base
import mylsm-lsm-store@0.6.0.1/src/transfer/BackupIo.bend as BackupIo

1106def Bytes.backup_to.result(
1107  handle: Bytes.Handle,
1108  result: Result<&1, &1, BackupIo.Error, Unit>
1109) -> Bytes.Handle & Result<&1, &1, Bytes.Error, Unit>:
1110  match result:
1111    case Fail{error}: (handle, Fail{Bytes.backup_to.error(error)})
1112    case Done{Unit{}}: (handle, Done{Unit{}})

Uses (8)

Used by (2)