Struct etherparse::Ethernet2Header [] [src]

pub struct Ethernet2Header {
    pub source: [u8; 6],
    pub destination: [u8; 6],
    pub ether_type: u16,
}

Ethernet II header.

Fields

Methods

impl Ethernet2Header
[src]

[src]

Reads an Ethernet-II header from the current position of the read argument.

[src]

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

Trait Implementations

impl Clone for Ethernet2Header
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Ethernet2Header
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Ethernet2Header
[src]

impl PartialEq for Ethernet2Header
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl SerializedSize for Ethernet2Header
[src]

SERIALIZED_SIZE: usize = 14

Serialized size of the header in bytes.

Auto Trait Implementations