pub enum PDUFormat {
PDU1(u8),
PDU2(u8),
}
Expand description
Protocol Data Unit Format.
There are two different PDU formats. PDU1 format is used for sending messages with a specific destination address. PDU2 format can only sent broadcasts. The PDU format byte in the identifier determines the message format. If the PDU format byte is less than 240 (0xF0) then the format is PDU1 and if it is greater than 239 it is PDU2.
Variants§
Trait Implementations§
source§impl PartialEq for PDUFormat
impl PartialEq for PDUFormat
impl Eq for PDUFormat
impl StructuralPartialEq for PDUFormat
Auto Trait Implementations§
impl Freeze for PDUFormat
impl RefUnwindSafe for PDUFormat
impl Send for PDUFormat
impl Sync for PDUFormat
impl Unpin for PDUFormat
impl UnwindSafe for PDUFormat
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