pub struct ARPSlice<'a> { /* private fields */ }
Expand description
ARP packet slice
Implementations§
Source§impl<'a> ARPSlice<'a>
impl<'a> ARPSlice<'a>
Sourcepub fn hardware_type(&self) -> u16
pub fn hardware_type(&self) -> u16
Hardware type (only ethernet supported)
Sourcepub fn protocol_type(&self) -> u16
pub fn protocol_type(&self) -> u16
Protocol (only ipv4 supported)
Sourcepub fn hardware_size(&self) -> u8
pub fn hardware_size(&self) -> u8
Hardware address size (ethernet address size, always 6)
Sourcepub fn protocol_size(&self) -> u8
pub fn protocol_size(&self) -> u8
Protocol address size (ipv4 address size, always 4)
Sourcepub fn sender_hardware_addr(&self) -> &[u8] ⓘ
pub fn sender_hardware_addr(&self) -> &[u8] ⓘ
Sender hardware address (ethernet address)
Sourcepub fn sender_protocol_addr(&self) -> &[u8] ⓘ
pub fn sender_protocol_addr(&self) -> &[u8] ⓘ
Sender protocol address (ipv4 address)
Sourcepub fn target_hardware_addr(&self) -> &[u8] ⓘ
pub fn target_hardware_addr(&self) -> &[u8] ⓘ
Target hardware address (ethernet address)
Sourcepub fn target_protocol_addr(&self) -> &[u8] ⓘ
pub fn target_protocol_addr(&self) -> &[u8] ⓘ
Target protocol address (ipv4 address)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ARPSlice<'a>
impl<'a> RefUnwindSafe for ARPSlice<'a>
impl<'a> Send for ARPSlice<'a>
impl<'a> Sync for ARPSlice<'a>
impl<'a> Unpin for ARPSlice<'a>
impl<'a> UnwindSafe for ARPSlice<'a>
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