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. Carriage return characters at the end of lines are not preserved.
Trait Implementations§
source§impl Clone for LinesCodec
impl Clone for LinesCodec
source§fn clone(&self) -> LinesCodec
fn clone(&self) -> LinesCodec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LinesCodec
impl Debug for LinesCodec
source§impl Decoder for LinesCodec
impl Decoder for LinesCodec
source§fn 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
source§impl Default for LinesCodec
impl Default for LinesCodec
source§fn default() -> LinesCodec
fn default() -> LinesCodec
Returns the “default value” for a type. Read more
impl Copy for LinesCodec
Auto Trait Implementations§
impl Freeze for LinesCodec
impl RefUnwindSafe for LinesCodec
impl Send for LinesCodec
impl Sync for LinesCodec
impl Unpin for LinesCodec
impl UnwindSafe for LinesCodec
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)