Struct cross_socket::packet::arp::ArpPacket
source · pub struct ArpPacket {
pub hardware_type: ArpHardwareType,
pub protocol_type: EtherType,
pub operation: ArpOperation,
pub sender_hw_addr: MacAddr,
pub sender_proto_addr: Ipv4Addr,
pub target_hw_addr: MacAddr,
pub target_proto_addr: Ipv4Addr,
pub payload: Vec<u8>,
}Expand description
Represents an ARP packet
Fields§
§hardware_type: ArpHardwareTypeHardware type
protocol_type: EtherTypeProtocol type
operation: ArpOperationOperation
sender_hw_addr: MacAddrSender hardware address
sender_proto_addr: Ipv4AddrSender IPv4 address
target_hw_addr: MacAddrTarget hardware address
target_proto_addr: Ipv4AddrTarget IPv4 address
payload: Vec<u8>Payload
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ArpPacket
impl Send for ArpPacket
impl Sync for ArpPacket
impl Unpin for ArpPacket
impl UnwindSafe for ArpPacket
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