pub struct FrameReader { /* private fields */ }Expand description
Stateful COBS frame accumulator.
Feed raw byte chunks (from serial reads, socket reads, etc.) and extract complete decoded frames. Handles partial reads, multiple frames per chunk, and empty inter-frame gaps gracefully.
Used by both the sync client (read_frame) and the async mux to accumulate
data from serial and client socket streams.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameReader
impl RefUnwindSafe for FrameReader
impl Send for FrameReader
impl Sync for FrameReader
impl Unpin for FrameReader
impl UnsafeUnpin for FrameReader
impl UnwindSafe for FrameReader
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