pub struct Packet {
pub is_error: bool,
pub device_address: u16,
pub data: Vec<u8>,
}Fields§
§is_error: boolIf this flag is set, the packet is considered to be an error packet
device_address: u16Transmitting device’s address
data: Vec<u8>Packet data
Implementations§
Trait Implementations§
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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