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
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.
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.
Trait Implementations§
Source§impl Clone for MessageParser
impl Clone for MessageParser
Source§fn clone(&self) -> MessageParser
fn clone(&self) -> MessageParser
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MessageParser
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