pub struct LineBasedFrameDecoder { /* private fields */ }Expand description
A line based frame decoder with TerminatorType as delimiter
Implementations§
Source§impl LineBasedFrameDecoder
impl LineBasedFrameDecoder
Sourcepub fn new(
max_length: usize,
strip_delimiter: bool,
terminator_type: TerminatorType,
) -> Self
pub fn new( max_length: usize, strip_delimiter: bool, terminator_type: TerminatorType, ) -> Self
Creates a new LineBasedFrameDecoder
Trait Implementations§
Source§impl Default for LineBasedFrameDecoder
impl Default for LineBasedFrameDecoder
Source§fn default() -> LineBasedFrameDecoder
fn default() -> LineBasedFrameDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LineBasedFrameDecoder
impl RefUnwindSafe for LineBasedFrameDecoder
impl Send for LineBasedFrameDecoder
impl Sync for LineBasedFrameDecoder
impl Unpin for LineBasedFrameDecoder
impl UnwindSafe for LineBasedFrameDecoder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more