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. The MAC holds at most
MAX_MAC_LEN octets on the wire: the decoder refuses a longer one and
the encoder refuses to write it.
Fields§
§network: u16Network number (1-65534, or 0xFFFF for global broadcast destination).
mac_address: MacAddrMAC-layer address (variable length, empty for broadcast).
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 From<Address<'_>> for NpduAddress
An owned copy of a borrowed address.
impl From<Address<'_>> for NpduAddress
An owned copy of a borrowed address.
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