Struct netsim::wire::EtherFrame [] [src]

pub struct EtherFrame { /* fields omitted */ }

Represents an ethernet frame.

Methods

impl EtherFrame
[src]

[src]

Construct a new EthernetFrame. Using new_from_fields_recursive can avoid an extra allocation if you are also constructing the frame's payload.

[src]

Construct a new EthernetFrame.

[src]

Create a new ethernet frame, writing it to the given buffer.

[src]

Get the fields of this ethernet frame.

[src]

Set the fields of this ethernet frame.

[src]

Construct a new ethernet frame from the given buffer.

[src]

Get the frame's sender MAC address.

[src]

Get the frame's destination MAC address.

[src]

Get the frame's payload

[src]

Returns the underlying buffer.

Trait Implementations

impl Clone for EtherFrame
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for EtherFrame
[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 Debug for EtherFrame
[src]

[src]

Formats the value using the given formatter.