BackupCursor.finish.decided: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend as BackupCursor Lines 245-262 of mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend&start_line=245&end_line=262 import Base import mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend as ByteMemTable import mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend as VisibleCursor import mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend as Backup import mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorPolicy.bend as Policy def finish.decided( decision: Policy.FinishDecision, cursor: Maybe<&1, VisibleCursor.Cursor>, pending: List<&1, ByteMemTable.Entry>, seen: Nat, expected: Nat, entry_count: U32, block_count: U32, block_index: U32 ) -> Step: match decision: case Policy.CursorFinishRejected{}: Failure{cursor, Backup.ResourceLimit{}} case Policy.CursorFooter{}: footer(cursor, seen, expected, entry_count, block_count, block_index) case Policy.CursorFinalBlock{pending_count}: block.encoded(cursor, pending, seen, expected, entry_count, block_count, block.index.pair(block_index), pending_count, CursorFooter{}) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ByteMemTable.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/scan/VisibleCursor.bend&name=Cursor https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend&name=Phase https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend&name=Step https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend&name=block.encoded https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend&name=block.index.pair https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursor.bend&name=footer https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/transfer/BackupCursorPolicy.bend&name=FinishDecision