pub struct NpduAddress {
pub network: u16,
pub mac_address: MacAddr,
}Expand description
Network-layer address: network number + MAC address.
Used for source/destination fields in routed NPDUs.
Fields§
§network: u16Network number (1-65534, or 0xFFFF for global broadcast destination).
mac_address: MacAddrMAC-layer address (variable length, empty for broadcast).
Implementations§
Source§impl NpduAddress
impl NpduAddress
Sourcepub const MAX_MAC_LEN: usize = BACnetAddress::MAX_MAC_LEN
pub const MAX_MAC_LEN: usize = BACnetAddress::MAX_MAC_LEN
The longest DADR or SADR, in octets, the codec encodes or decodes
(#1141). It is the same limit as BACnetAddress::MAX_MAC_LEN.
A length octet could announce up to 255 octets, yet no standard data
link in Table 6-2 (Clause 6.2.2.2) needs more than 7, and the longest
MAC this stack serves is 6 octets (a B/IPv6 node’s is its 3-octet
VMAC). The bound is the defensive 18 of BACnetAddress::MAX_MAC_LEN.
A longer DLEN or SLEN names no node on a standard data link or on any
data link this stack serves.
Trait Implementations§
Source§impl Clone for NpduAddress
impl Clone for NpduAddress
Source§impl Debug for NpduAddress
impl Debug for NpduAddress
impl Eq for NpduAddress
Source§impl Hash for NpduAddress
impl Hash for NpduAddress
Source§impl PartialEq for NpduAddress
impl PartialEq for NpduAddress
impl StructuralPartialEq for NpduAddress
Auto Trait Implementations§
impl Freeze for NpduAddress
impl RefUnwindSafe for NpduAddress
impl Send for NpduAddress
impl Sync for NpduAddress
impl Unpin for NpduAddress
impl UnsafeUnpin for NpduAddress
impl UnwindSafe for NpduAddress
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