[][src]Struct capsule::packets::icmp::v6::EchoReply

pub struct EchoReply<E: Ipv6Packet> { /* fields omitted */ }

Echo Reply Message defined in IETF RFC 4443.

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     Type      |     Code      |          Checksum             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|           Identifier          |        Sequence Number        |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     Data ...
+-+-+-+-+-
  • Identifier: The identifier from the invoking Echo Request message.

  • Sequence Number: The sequence number from the invoking Echo Request message.

  • Data: The data from the invoking Echo Request message.

Implementations

impl<E: Ipv6Packet> EchoReply<E>[src]

pub fn identifier(&self) -> u16[src]

Returns the identifier.

pub fn set_identifier(&mut self, identifier: u16)[src]

Sets the identifier.

pub fn seq_no(&self) -> u16[src]

Returns the sequence number.

pub fn set_seq_no(&mut self, seq_no: u16)[src]

Sets the sequence number.

pub fn data(&self) -> &[u8][src]

Returns the data as a u8 slice.

pub fn set_data(&mut self, data: &[u8]) -> Fallible<()>[src]

Sets the data.

Trait Implementations

impl<E: Ipv6Packet> Debug for EchoReply<E>[src]

impl<E: Ipv6Packet> Icmpv6Message for EchoReply<E>[src]

type Envelope = E

The preceding packet type that encapsulates this message.

impl<E: Ipv6Packet> Icmpv6Packet for EchoReply<E>[src]

impl<E: Ipv6Packet> Packet for EchoReply<E>[src]

type Envelope = E

The preceding packet type that encapsulates this packet. Read more

Auto Trait Implementations

impl<E> RefUnwindSafe for EchoReply<E> where
    E: RefUnwindSafe

impl<E> !Send for EchoReply<E>

impl<E> !Sync for EchoReply<E>

impl<E> Unpin for EchoReply<E> where
    E: Unpin

impl<E> UnwindSafe for EchoReply<E> where
    E: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,