ByteClient.snapshot.cursor.next.decision: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend as ByteClient Lines 403-412 of mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend&start_line=403&end_line=412 import Base import mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend as Client import mylsm-lsm-store@0.6.0.1/src/coordinator/CursorCodec.bend as CursorCodec import mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend as OwnerCursorCodec # Maps one pure next-response decision into a client result. def snapshot.cursor.next.decision( decision: OwnerCursorCodec.NextDecision ) -> Result<&1, &1, Client.Error, CursorCodec.Frame>: match decision: case OwnerCursorCodec.NextFrame{frame}: Done{frame} case OwnerCursorCodec.NextRejected{status}: Fail{Client.OwnerRejected{status}} case OwnerCursorCodec.NextMalformed{}: Fail{Client.MalformedResponse{}} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/CursorCodec.bend&name=Frame https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend&name=NextDecision