RestoreIo.temporary.checked: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/transfer/RestoreIo.bend as RestoreIo Lines 400-412 of mylsm-lsm-store@0.6.0.1/src/transfer/RestoreIo.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/RestoreIo.bend&start_line=400&end_line=412 import Base import mylsm-lsm-store@0.6.0.1/src/transfer/Restore.bend as Restore import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def temporary.checked( +destination: String, +temporary: String, input: Bytes.Bytes, result: Result<&1, &1, U32 & String, Bool> ) -> IO(Result<&1, &1, Error, Unit>): match result: case Fail{(code, message)}: IO.pure(Result<&1, &1, Error, Unit>, Fail{Io{code, message}}) case Done{True{}}: IO.pure(Result<&1, &1, Error, Unit>, Fail{TemporaryExists{}}) case Done{False{}}: temporary.decoded(destination, temporary, Restore.decode(input)) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/Restore.bend&name=decode https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/RestoreIo.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/RestoreIo.bend&name=temporary.decoded