ByteClient.snapshot.cursor.open.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 294-303 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=294&end_line=303 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/OwnerCursorCodec.bend as OwnerCursorCodec # Maps one pure open-response decision into a client result. def snapshot.cursor.open.decision( decision: OwnerCursorCodec.OpenDecision ) -> Result<&1, &1, Client.Error, U32>: match decision: case OwnerCursorCodec.Opened{cursor_id}: Done{cursor_id} case OwnerCursorCodec.OpenRejected{status}: Fail{Client.OwnerRejected{status}} case OwnerCursorCodec.OpenMalformed{}: Fail{Client.MalformedResponse{}} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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/coordinator/Client.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend&name=OpenDecision