[][src]Struct rplidar_drv::RplidarHostProtocol

pub struct RplidarHostProtocol { /* fields omitted */ }

The implementation of RPLIDAR host protocol

Methods

impl RplidarHostProtocol[src]

Trait Implementations

impl Clone for RplidarHostProtocol[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<RplidarHostProtocol> for RplidarHostProtocol[src]

impl Debug for RplidarHostProtocol[src]

impl ProtocolDecoder for RplidarHostProtocol[src]

fn decode(&mut self, buf: &[u8]) -> Result<(usize, Option<Message>), Error>[src]

Decode bytes and return consumed bytes and message

fn reset_decoder(&mut self)[src]

Reset the decoder status

impl ProtocolEncoder for RplidarHostProtocol[src]

fn encode(&mut self, msg: &Message, bytes: &mut [u8]) -> Result<usize, Error>[src]

Encode message into byte array Always encode commands

fn estimate_encoded_size(&mut self, msg: &Message) -> Result<usize, Error>[src]

Estimate encoded message size (must be greater than or equal to the actual encoded size)

fn write_to(
    &mut self,
    msg: &Message,
    dest: &mut impl Write
) -> Result<usize, Error>
[src]

Write message to std::io::Write targets

fn reset_encoder(&mut self)[src]

Reset encoder

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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