pub struct Npdu {
pub control: u8,
pub destination: Option<NpduAddress>,
pub source: Option<NpduAddress>,
pub hop_count: Option<u8>,
pub message_type: Option<u8>,
pub vendor_id: Option<u16>,
}Expand description
BACnet Network Protocol Data Unit (NPDU) header.
Handles encoding and decoding of the NPDU including optional source/ destination addresses, hop count, and network-layer message fields.
Fields§
§control: u8§destination: Option<NpduAddress>§source: Option<NpduAddress>§hop_count: Option<u8>§message_type: Option<u8>§vendor_id: Option<u16>Implementations§
Trait Implementations§
impl Copy for Npdu
impl Eq for Npdu
impl StructuralPartialEq for Npdu
Auto Trait Implementations§
impl Freeze for Npdu
impl RefUnwindSafe for Npdu
impl Send for Npdu
impl Sync for Npdu
impl Unpin for Npdu
impl UnsafeUnpin for Npdu
impl UnwindSafe for Npdu
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