Trait mutnet::ethernet::EthernetMethodsMut
source · pub trait EthernetMethodsMut: EthernetMethods + BufferAccessMut + HeaderManipulation + Sized {
// Provided methods
fn set_ethernet_destination(&mut self, mac_addr: &MacAddress) { ... }
fn set_ethernet_source(&mut self, mac_addr: &MacAddress) { ... }
fn set_ethernet_ether_type(&mut self, ether_type: EtherType) { ... }
}
Expand description
Methods available for DataBuffer
containing an
Eth
header and wrapping a mutable data buffer.
Provided Methods§
sourcefn set_ethernet_destination(&mut self, mac_addr: &MacAddress)
fn set_ethernet_destination(&mut self, mac_addr: &MacAddress)
Sets the ethernet II destination.
sourcefn set_ethernet_source(&mut self, mac_addr: &MacAddress)
fn set_ethernet_source(&mut self, mac_addr: &MacAddress)
Sets the ethernet II source.
sourcefn set_ethernet_ether_type(&mut self, ether_type: EtherType)
fn set_ethernet_ether_type(&mut self, ether_type: EtherType)
Sets the ethernet II ether type.
Object Safety§
This trait is not object safe.