[][src]Struct drs_0x01::reader::ACKReader

pub struct ACKReader { /* fields omitted */ }

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.

Methods

impl ACKReader[src]

pub fn new() -> ACKReader[src]

Creates a new state machine to read incoming Herkulex messages

pub fn pop_ack_packet(&mut self) -> Option<ACKPacket>[src]

Return the oldest ACKPacket read

pub fn available_messages(&mut self) -> usize[src]

Get the number of available messages in the internal buffer

pub fn parse(&mut self, buf: &[u8])[src]

Parse a buffer of bytes, adding sucessfully decoded messages to the internal buffer

Trait Implementations

impl Default for ACKReader[src]

Auto Trait Implementations

impl Send for ACKReader

impl Sync for ACKReader

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err