pub struct DecodedMessage {
pub message_type: u16,
pub length: u32,
pub payload: Vec<u8>,
}Expand description
Decoded message from the device
Fields§
§message_type: u16Message type (protobuf message ID)
length: u32Total length of the payload
payload: Vec<u8>Message payload (protobuf-encoded data)
Trait Implementations§
Source§impl Clone for DecodedMessage
impl Clone for DecodedMessage
Source§fn clone(&self) -> DecodedMessage
fn clone(&self) -> DecodedMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecodedMessage
impl RefUnwindSafe for DecodedMessage
impl Send for DecodedMessage
impl Sync for DecodedMessage
impl Unpin for DecodedMessage
impl UnsafeUnpin for DecodedMessage
impl UnwindSafe for DecodedMessage
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