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§

source

fn set_ethernet_destination(&mut self, mac_addr: &MacAddress)

Sets the ethernet II destination.

source

fn set_ethernet_source(&mut self, mac_addr: &MacAddress)

Sets the ethernet II source.

source

fn set_ethernet_ether_type(&mut self, ether_type: EtherType)

Sets the ethernet II ether type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<B, HM> EthernetMethodsMut for DataBuffer<B, HM>
where B: AsRef<[u8]> + AsMut<[u8]>, HM: HeaderMetadata + HeaderMetadataMut + EthernetMarker + Sized,