You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type should work like a tokio_util::codec::Decoder type where Item is String and Error is std::string::FromUtf8Error.
A decoder is constructed from a NewlinePattern value and searches a given buffer of bytes for a match; if it finds one, it attempts to decode all bytes up to/through the match using String::from_utf8(), returning the error if it fails.
Add options for whether to retain trailing matches and/or yield a final empty string after a final match
Prerequisite: #9
The type should work like a
tokio_util::codec::Decodertype whereItemisStringandErrorisstd::string::FromUtf8Error.A decoder is constructed from a
NewlinePatternvalue and searches a given buffer of bytes for a match; if it finds one, it attempts to decode all bytes up to/through the match usingString::from_utf8(), returning the error if it fails.Add options for whether to retain trailing matches and/or yield a final empty string after a final match