pub struct FrameDecoder { /* private fields */ }Expand description
Streaming accumulator for inbound bytes. Emits one FrameResult per
0x00-delimited frame encountered in the feed.
Overflow policy: if accumulated bytes exceed the maximum COBS-encoded
size without a delimiter, the buffer is reset and the next 0x00 is
treated as the start of a fresh frame. A FrameResult::Err is NOT
emitted for the dropped bytes — the bytes are simply never classified
(the device or host will observe a dropped response and time out at
the command level).
Implementations§
Source§impl FrameDecoder
impl FrameDecoder
Trait Implementations§
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