Module socket
Available on crate feature
net only.Modules§
- core
- Utilities for creating and using sockets.
- linux
Linux - opts
- Options and types in function of creating
Sockets.
Structs§
- Device
Name - Name of a (network) interface device name, e.g.
eth0. - Hardware
Address - Link-layer (MAC) address of an
Interface. - Interface
- A network interface of the local host, as enumerated by
interfaces. - Interface
Address - One IP address assigned to a local network
Interface. - Interface
Flags - Status and capability flags of a local network
Interface. - Socket
Options
Traits§
- Socket
Service - Glue trait that is used as the trait bound for code creating/preparing a socket on one layer or another.
Functions§
- interfaces
- Enumerate the host’s network interfaces and their assigned addresses.
- local_
addresses - Every address assigned to an interface that is up (administratively and
operationally), filtered to the given
IpScopes, deduplicated, in the order the platform reported them. - route_
source_ address - The address the OS would send from to reach
destination, without sending anything: connecting a UDP socket only sets the peer.