pub struct FrameDecoder { /* private fields */ }Expand description
Splits a byte stream into bounded lines.
The decoder keeps a partial line between calls, so a read loop that is
cancelled between buffers loses nothing: feed what the reader has, consume
exactly Step::consumed, and call again.
Implementations§
Trait Implementations§
Source§impl Clone for FrameDecoder
impl Clone for FrameDecoder
Auto Trait Implementations§
impl Freeze for FrameDecoder
impl RefUnwindSafe for FrameDecoder
impl Send for FrameDecoder
impl Sync for FrameDecoder
impl Unpin for FrameDecoder
impl UnsafeUnpin for FrameDecoder
impl UnwindSafe for FrameDecoder
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