Docs.rs
  • pnet_sys-0.31.0
    • pnet_sys 0.31.0
    • Permalink
    • Docs.rs crate page
    • MIT/Apache-2.0
    • Links
    • Homepage
    • Repository
    • Crates.io
    • Source
    • Owners
    • mrmonday
    • faern
    • github:libpnet:owners
    • JuxhinDB
    • kishiguro
    • Dependencies
      • libc ^0.2.126 normal
      • winapi ^0.3.9 normal
    • Versions
      • 0.31.0
      • 0.30.0
      • 0.29.0
      • 0.28.0
      • 0.27.2
      • 0.27.1
      • 0.27.0
      • 0.26.0
      • 0.25.0
      • 0.24.0
      • 0.23.1
      • 0.23.0
      • 0.22.0
      • 0.21.0
      • 0.20.0
    • 15.22% of the crate is documented
  • Platform
    • x86_64-unknown-linux-gnu
    • x86_64-pc-windows-msvc
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
  • Feature flags
  • Releases
    • All Releases
    • Releases by Stars
    • Recent Build Failures
    • Build Failures by Stars
    • Release Activity
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • Rust Cookbook
    • Crates.io
    • The Cargo Guide
About docs.rs Privacy policy Build queue
logo

logo

Crate pnet_sys

  • Version 0.31.0
  • All Items
  • Structs
  • Constants
  • Functions
  • Type Definitions
logo
Change settings

Crate pnet_sys

source · [−]

Structs

FileDesc

Any file descriptor on unix, only sockets on Windows.

Constants

AF_INET
AF_INET6
IFF_BROADCAST
IFF_DORMANT
IFF_LOOPBACK
IFF_LOWER_UP
IFF_MULTICAST
IFF_POINTOPOINT
IFF_RUNNING
IFF_UP
INVALID_SOCKET
IPPROTO_IP
IPPROTO_IPV6
IPV6_UNICAST_HOPS
IP_HDRINCL
IP_TTL
SOCK_RAW
SOL_SOCKET
SO_RCVTIMEO
SO_SNDTIMEO

Functions

addr_to_sockaddr
close⚠
duration_to_timespec

Convert a Duration into a platform specific timespec.

duration_to_timeval

Convert a Duration into a platform specific timeval.

get_socket_receive_timeout

Extracts and returns a timout for reading from the socket.

getsockopt⚠
recv_from
send_to
set_socket_receive_timeout

Set a timeout for receiving from the socket.

setsockopt⚠
sockaddr_to_addr
socket⚠
timespec_to_duration

Convert a platform specific timespec into a Duration.

timeval_to_duration

Convert a platform specific timeval into a Duration.

Type Definitions

Buf
BufLen
CSocket
CouldFail
In6Addr
InAddr
InAddrType
MutBuf
MutSockLen
SockAddr
SockAddrFamily
SockAddrFamily6
SockAddrIn
SockAddrIn6
SockAddrStorage
SockLen
TvUsecType