Any delimiter codec by r-zig · Pull Request #3406 · tokio-rs/tokio (original) (raw)
Motivation
To provide codecs that can be used with custom delimiters and encoder characters. The codex will decide based on any character found in the given delimiter characters.
Solution
This will work similarly to LinesCodec by trying to find any of the characters while decoding , and appending all of the given characters while encoding.