Struct rust_rpi_4wd_car::Decoder [−][src]
pub struct Decoder { /* fields omitted */ }
A robot mode & command decoder.
Expected to be used as part of a Tcp (Web), Bluetooth, or other server and client type control schema. Could also be used in a CLI or file based scripting system.
Implementations
impl Decoder
[src]
pub fn new() -> Rr4cResult<Self>
[src]
Constructor
pub fn rr_decode<'a, L: Into<&'a str>>(&mut self, line: L) -> Result
[src]
Top level command decoder.
Arguments
line
- String containing a single command frame that starts with a ‘$’ and ends with a ‘#’.
pub fn yb_decode<'a, L: Into<&'a str>>(&mut self, line: L) -> Result
[src]
Yahboom command decoder.
Arguments
line
- String containing a single command frame that starts with a ‘$’ and ends with a ‘#’.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl !UnwindSafe for Decoder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,