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).
Trait Implementations§
Source§impl Clone for NpduAddress
impl Clone for NpduAddress
Source§fn clone(&self) -> NpduAddress
fn clone(&self) -> NpduAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NpduAddress
impl Debug for NpduAddress
Source§impl Hash for NpduAddress
impl Hash for NpduAddress
Source§impl PartialEq for NpduAddress
impl PartialEq for NpduAddress
impl Eq 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