Trait mutnet::arp::ArpMethodsMut
source · pub trait ArpMethodsMut: ArpMethods + BufferAccessMut + HeaderManipulation + Sized {
// Provided methods
fn set_arp_operation_code(&mut self, operation_code: OperationCode) { ... }
fn set_arp_sender_hardware_address(&mut self, sender_addr: &MacAddress) { ... }
fn set_arp_sender_protocol_address(&mut self, sender_addr: &Ipv4Addr) { ... }
fn set_arp_target_hardware_address(&mut self, target_addr: &MacAddress) { ... }
fn set_arp_target_protocol_address(&mut self, target_addr: &Ipv4Addr) { ... }
}
Expand description
Methods available for DataBuffer
containing an
Arp
header and wrapping a mutable data buffer.
Provided Methods§
sourcefn set_arp_operation_code(&mut self, operation_code: OperationCode)
fn set_arp_operation_code(&mut self, operation_code: OperationCode)
Sets the ARP operation code.
sourcefn set_arp_sender_hardware_address(&mut self, sender_addr: &MacAddress)
fn set_arp_sender_hardware_address(&mut self, sender_addr: &MacAddress)
Sets the ARP sender hardware address.
sourcefn set_arp_sender_protocol_address(&mut self, sender_addr: &Ipv4Addr)
fn set_arp_sender_protocol_address(&mut self, sender_addr: &Ipv4Addr)
Sets the ARP sender protocol address.
sourcefn set_arp_target_hardware_address(&mut self, target_addr: &MacAddress)
fn set_arp_target_hardware_address(&mut self, target_addr: &MacAddress)
Sets the ARP target hardware address.
sourcefn set_arp_target_protocol_address(&mut self, target_addr: &Ipv4Addr)
fn set_arp_target_protocol_address(&mut self, target_addr: &Ipv4Addr)
Sets the ARP target protocol address.
Object Safety§
This trait is not object safe.