Summary
Type design improvements for the reassembly module identified during PR #10 review.
Items
- Make FlowKey fields private, add read-only accessors — prevents HashMap key mutation
- Move insert_segment/flush_contiguous into impl FlowDirection — consolidates mutation
- Extract flush-and-remove helper — deduplicate pattern used in RST, FIN, expire, evict, finalize
- Add max_receive_window to reject segments far ahead of base_offset
Acceptance Criteria
Summary
Type design improvements for the reassembly module identified during PR #10 review.
Items
Acceptance Criteria
close_flow()helper used by all removal paths