Struct actix_codec::LinesCodec
source · [−]#[non_exhaustive]pub struct LinesCodec;
Expand description
Lines codec. Reads/writes line delimited strings.
Will split input up by LF or CRLF delimiters. I.e. carriage return characters at the end of lines are not preserved.
Trait Implementations
sourceimpl Clone for LinesCodec
impl Clone for LinesCodec
sourcefn clone(&self) -> LinesCodec
fn clone(&self) -> LinesCodec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LinesCodec
impl Debug for LinesCodec
sourceimpl Decoder for LinesCodec
impl Decoder for LinesCodec
sourcefn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
sourceimpl Default for LinesCodec
impl Default for LinesCodec
sourcefn default() -> LinesCodec
fn default() -> LinesCodec
Returns the “default value” for a type. Read more
sourceimpl<T: AsRef<str>> Encoder<T> for LinesCodec
impl<T: AsRef<str>> Encoder<T> for LinesCodec
impl Copy for LinesCodec
Auto Trait Implementations
impl RefUnwindSafe for LinesCodec
impl Send for LinesCodec
impl Sync for LinesCodec
impl Unpin for LinesCodec
impl UnwindSafe for LinesCodec
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