[−][src]Struct rplidar_drv::RplidarHostProtocol
The implementation of RPLIDAR host protocol
Methods
impl RplidarHostProtocol
[src]
pub fn new() -> RplidarHostProtocol
[src]
Trait Implementations
impl Clone for RplidarHostProtocol
[src]
fn clone(&self) -> 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]
fn eq(&self, other: &RplidarHostProtocol) -> bool
[src]
fn ne(&self, other: &RplidarHostProtocol) -> bool
[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]
&mut self,
msg: &Message,
dest: &mut impl Write
) -> Result<usize, Error>
Write message to std::io::Write
targets
fn reset_encoder(&mut self)
[src]
Reset encoder
Auto Trait Implementations
impl Send for RplidarHostProtocol
impl Sync for RplidarHostProtocol
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,