Enum netsim::wire::IpPacket [] [src]

pub enum IpPacket {
    V4(Ipv4Packet),
    V6(Ipv6Packet),
}

An IP packet.

Variants

IPv4

IPv6

Methods

impl IpPacket
[src]

[src]

Parse an IP packet from a byte buffer

[src]

Get a reference to the packet's underlying byte buffer

[src]

Consume the packet and return the underlying byte buffer

[src]

Get the packet's source IP address

[src]

Get the packet's destination IP address

Trait Implementations

impl Clone for IpPacket
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for IpPacket

impl Sync for IpPacket