pub struct ACKReader { /* private fields */ }
Expand description
This is a state machine that take in some bytes and outputs [AckPacket]
.
Please note that this structure will allocate roughly 1 kiB of stack.
Implementations
sourceimpl ACKReader
impl ACKReader
sourcepub fn pop_ack_packet(&mut self) -> Option<ACKPacket>
pub fn pop_ack_packet(&mut self) -> Option<ACKPacket>
Return the oldest ACKPacket read
sourcepub fn available_messages(&mut self) -> usize
pub fn available_messages(&mut self) -> usize
Get the number of available messages in the internal buffer
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ACKReader
impl Send for ACKReader
impl Sync for ACKReader
impl Unpin for ACKReader
impl UnwindSafe for ACKReader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more