Struct rust_tuyapi::mesparse::MessageParser
source · pub struct MessageParser { /* private fields */ }
Expand description
The message parser takes care of encoding and parsing messages before send and after receive. It uses a TuyaCipher to encrypt and decrypt messages sent with the Tuya protocol version 3.3.
Implementations§
source§impl MessageParser
impl MessageParser
MessageParser encodes and parses messages sent to and from Tuya devices. It may or may not encrypt the message, depending on message type and TuyaVersion. Likewise, the parsing may or may not need decrypting.
Auto Trait Implementations§
impl RefUnwindSafe for MessageParser
impl Send for MessageParser
impl Sync for MessageParser
impl Unpin for MessageParser
impl UnwindSafe for MessageParser
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more