pub struct MultiLineCodec { /* private fields */ }Expand description
A simple codec that parses messages separated by two successive
\n newlines.
Trait Implementations§
Source§impl Decoder for MultiLineCodec
impl Decoder for MultiLineCodec
Source§fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>, Error>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>, Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for MultiLineCodec
impl Default for MultiLineCodec
Source§fn default() -> MultiLineCodec
fn default() -> MultiLineCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultiLineCodec
impl RefUnwindSafe for MultiLineCodec
impl Send for MultiLineCodec
impl Sync for MultiLineCodec
impl Unpin for MultiLineCodec
impl UnsafeUnpin for MultiLineCodec
impl UnwindSafe for MultiLineCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more