Struct cln_plugin::codec::MultiLineCodec
source · [−]pub struct MultiLineCodec {}Expand description
A simple codec that parses messages separated by two successive
\n newlines.
Trait Implementations
sourceimpl Decoder for MultiLineCodec
impl Decoder for MultiLineCodec
sourcefn 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
sourceimpl Default for MultiLineCodec
impl Default for MultiLineCodec
sourcefn default() -> MultiLineCodec
fn default() -> MultiLineCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MultiLineCodec
impl Send for MultiLineCodec
impl Sync for MultiLineCodec
impl Unpin for MultiLineCodec
impl UnwindSafe for MultiLineCodec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more