def Bytes.backup_next

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

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

1092# Produces one bounded checksummed backup chunk per call.
1093def Bytes.backup_next(stream: Bytes.BackupStream) -> Result<&1, &1, Bytes.Error, Bytes.BackupStep>:
1094  match stream:
1095    case ByteBackupStream{inner}:
1096      Bytes.backup.next.result(BackupCodec.next(inner))

Uses (6)

Used by (1)