Crate surge_ping
source ·Macros
Structs
- If you want to pass the
Clientin the task, please wrap it withArc:Arc<Client>. and can realize the simultaneous ping of multiple addresses when only onesocketis created. - Config is the packaging of various configurations of
sockets. If you want to make someset_socket_optand other modifications, please define and implement them inConfig. - Packet structure returned by ICMPv4.
- Packet structure returned by ICMPv6.
- A Ping struct represents the state of one particular ping instance.
Enums
- Represents the ICMP reply packet.
- An error resulting from a ping option-setting or send/receive operation.
Functions
- Shortcut method to ping address. NOTE: This function creates a new internal
Clienton each call, and so should not be used if making many target. Create aClientinstead.