Trait etherparse::WriteEtherExt [] [src]

pub trait WriteEtherExt: Write {
    fn write_ethernet2_header(
        &mut self,
        value: &Ethernet2Header
    ) -> Result<(), Error> { ... }
fn write_ipv4_header(
        &mut self,
        value: &Ipv4Header
    ) -> Result<(), WriteError> { ... }
fn write_ipv6_header(
        &mut self,
        value: &Ipv6Header
    ) -> Result<(), WriteError> { ... } }

Helper for writing headers. Import this for adding write functions to every struct that implements the trait Read.

Provided Methods

Writes a given Ethernet-II header to the current position.

Writes a given IPv4 header to the current position.

Writes a given IPv6 header to the current position.

Implementors