def Bytes.restore_from

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

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

1371# Restores a published backup bundle containing its `BACKUP` exchange file.
1372def Bytes.restore_from(
1373  destination: String,
1374  bundle: String
1375) -> IO(Result<&1, &1, Bytes.Error, Unit>):
1376  do IO<Result<&1, &1, Bytes.Error, Unit>>:
1377    restored : Result<&1, &1, RestoreIo.Error, Unit> <-
1378      RestoreIo.restore_from(destination, bundle)
1379    converted : Result<&1, &1, Bytes.Error, Unit> <-
1380      Bytes.restore_from.result(restored)
1381    return converted

Uses (10)

Used by (0)

No other definition uses this definition.