Struct tiny_ping::EchoReply[][src]

pub struct EchoReply {
    pub ttl: Option<u8>,
    pub source: IpAddr,
    pub sequence: u16,
    pub identifier: u16,
    pub size: usize,
}
Expand description

EchoReply struct, which contains some packet information.

Fields

ttl: Option<u8>

IP Time To Live for outgoing packets. Present for ICMPv4 replies, absent for ICMPv6 replies.

source: IpAddr

Source address of ICMP packet.

sequence: u16

Sequence of ICMP packet.

identifier: u16

Identifier of ICMP packet.

size: usize

Size of ICMP packet.

Implementations

Unpack IP packets received from socket as EchoReply struct.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.