Struct rips_packets::arp::ArpPacket [] [src]

pub struct ArpPacket<'a>(_);

Methods

impl<'a> ArpPacket<'a>
[src]

MIN_LEN: usize = 28

The minimum number of bytes in this type of packet. Usually equal to the header size of the protocol.

[src]

Creates a new immutable packet based on the given backing slice. Returns None if the buffer is shorter than the minimum length of this packet.

[src]

Creates a new immutable packet based on the given backing slice without checking its length first. If the slice is too short, a subsequent read from a field might result in invalid memory access.

[src]

Returns a reference to the slice backing this packet.

[src]

Returns a slice to the part of the backing data that represents the header. This is simply everything up until min_len().

[src]

Returns a slice to the payload part of the backing data. This is simply everything after the header.

impl<'a> ArpPacket<'a>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a> Debug for ArpPacket<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Copy for ArpPacket<'a>
[src]

impl<'a> Clone for ArpPacket<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Eq for ArpPacket<'a>
[src]

impl<'a> PartialEq for ArpPacket<'a>
[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<'a> Hash for ArpPacket<'a>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'a> Send for ArpPacket<'a>

impl<'a> Sync for ArpPacket<'a>