pub struct IcmpSocket4 { /* private fields */ }
Expand description

An ICMPv4 socket.

Implementations

Construct a new socket. The socket must be bound to an address using bind_to before it can be used to send and receive packets.

Trait Implementations

The type of address this socket operates on.

The type of packet this socket handles.

Sets the ttl for packets sent on this socket. Controls the number of hops the packet will be allowed to traverse. Read more

Binds this socket to an address.

Sends the packet to the given destination.

Receive a packet on this socket.

Sets the timeout on the socket for rcv_from. A value of None will cause rcv_from to block. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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.