Protocol.header.classify: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend as Protocol Lines 566-581 of mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend&start_line=566&end_line=581 import Base def header.classify( decision: FrameDecision, frame_bytes: Maybe<&2, U32> ) -> HeaderDecision: match decision: case NeedMore{}: match frame_bytes: case Some{length}: HeaderReady{length} case _: HeaderMalformed{} case Decoded{_}: match frame_bytes: case Some{length}: HeaderReady{length} case _: HeaderMalformed{} case Malformed{}: HeaderMalformed{} case UnknownOperation{}: HeaderUnknownOperation{} case FrameTooLarge{}: HeaderTooLarge{} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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/Protocol.bend&name=FrameDecision https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend&name=HeaderDecision