Module sys

Source

Macrosยง

syscall ๐Ÿ”’
Helper macro to execute a system call that returns an io::Result.

Structsยง

CcidEndpoints
See [Socket::dccp_available_ccids].
IpMreq ๐Ÿ”’
IpMreqSource ๐Ÿ”’
Ipv6Mreq ๐Ÿ”’
MaybeUninitSlice
linger ๐Ÿ”’
msghdr ๐Ÿ”’
sockaddr ๐Ÿ”’
sockaddr_in ๐Ÿ”’
sockaddr_in6 ๐Ÿ”’
sockaddr_storage ๐Ÿ”’

Constantsยง

AF_INET ๐Ÿ”’
AF_INET6 ๐Ÿ”’
AF_UNIX ๐Ÿ”’
IPPROTO_DCCP ๐Ÿ”’
DCCP
IPPROTO_ICMP ๐Ÿ”’
IPPROTO_ICMPV6 ๐Ÿ”’
IPPROTO_IP ๐Ÿ”’
IPPROTO_IPV6 ๐Ÿ”’
IPPROTO_MPTCP ๐Ÿ”’
Multipath TCP
IPPROTO_SCTP ๐Ÿ”’
SCTP
IPPROTO_TCP ๐Ÿ”’
IPPROTO_UDP ๐Ÿ”’
IPPROTO_UDPLITE ๐Ÿ”’
IPV6_ADD_MEMBERSHIP ๐Ÿ”’
IPV6_DROP_MEMBERSHIP ๐Ÿ”’
IPV6_MULTICAST_HOPS ๐Ÿ”’
IPV6_MULTICAST_IF ๐Ÿ”’
IPV6_MULTICAST_LOOP ๐Ÿ”’
IPV6_RECVHOPLIMIT ๐Ÿ”’
IPV6_RECVTCLASS ๐Ÿ”’
IPV6_UNICAST_HOPS ๐Ÿ”’
IPV6_V6ONLY ๐Ÿ”’
IP_ADD_MEMBERSHIP ๐Ÿ”’
IP_ADD_SOURCE_MEMBERSHIP ๐Ÿ”’
IP_DROP_MEMBERSHIP ๐Ÿ”’
IP_DROP_SOURCE_MEMBERSHIP ๐Ÿ”’
IP_HDRINCL ๐Ÿ”’
IP_MULTICAST_IF ๐Ÿ”’
IP_MULTICAST_LOOP ๐Ÿ”’
IP_MULTICAST_TTL ๐Ÿ”’
IP_RECVTOS ๐Ÿ”’
IP_TOS ๐Ÿ”’
IP_TTL ๐Ÿ”’
MAX_BUF_LEN ๐Ÿ”’
Maximum size of a buffer passed to system call like recv and send.
MSG_OOB ๐Ÿ”’
MSG_PEEK ๐Ÿ”’
MSG_TRUNC ๐Ÿ”’
SOCK_DCCP ๐Ÿ”’
SOCK_DGRAM ๐Ÿ”’
SOCK_RAW ๐Ÿ”’
SOCK_SEQPACKET ๐Ÿ”’
SOCK_STREAM ๐Ÿ”’
SOL_SOCKET ๐Ÿ”’
SO_BROADCAST ๐Ÿ”’
SO_ERROR ๐Ÿ”’
SO_KEEPALIVE ๐Ÿ”’
SO_LINGER ๐Ÿ”’
SO_OOBINLINE ๐Ÿ”’
SO_PASSCRED ๐Ÿ”’
SO_RCVBUF ๐Ÿ”’
SO_RCVTIMEO ๐Ÿ”’
SO_REUSEADDR ๐Ÿ”’
SO_SNDBUF ๐Ÿ”’
SO_SNDTIMEO ๐Ÿ”’
SO_TYPE ๐Ÿ”’
TCP_CA_NAME_MAX ๐Ÿ”’
TCP_KEEPCNT ๐Ÿ”’
TCP_KEEPINTVL ๐Ÿ”’
TCP_NODELAY ๐Ÿ”’

Functionsยง

accept ๐Ÿ”’
bind ๐Ÿ”’
connect ๐Ÿ”’
fcntl_add ๐Ÿ”’
Add flag to the current set flags of F_GETFD.
fcntl_get ๐Ÿ”’
Get the flags using cmd.
fcntl_remove ๐Ÿ”’
Remove flag to the current set flags of F_GETFD.
from_in6_addr ๐Ÿ”’
from_in_addr ๐Ÿ”’
from_timeval ๐Ÿ”’
getpeername ๐Ÿ”’
getsockname ๐Ÿ”’
getsockopt ๐Ÿ”’ โš 
Caller must ensure T is the correct type for opt and val.
into_secs ๐Ÿ”’
into_timeval ๐Ÿ”’
keepalive_time ๐Ÿ”’
listen ๐Ÿ”’
msghdr_control_len ๐Ÿ”’
msghdr_flags ๐Ÿ”’
nonblocking ๐Ÿ”’
offset_of_path ๐Ÿ”’
Returns the offset of the sun_path member of the passed unix socket address.
original_dst ๐Ÿ”’
original_dst_ipv6 ๐Ÿ”’
Get the value for the IP6T_SO_ORIGINAL_DST option on this socket.
peek_sender ๐Ÿ”’
poll_connect ๐Ÿ”’
recv ๐Ÿ”’
recv_from ๐Ÿ”’
recv_from_vectored ๐Ÿ”’
recv_vectored ๐Ÿ”’
recvmsg ๐Ÿ”’
send ๐Ÿ”’
send_to ๐Ÿ”’
send_to_vectored ๐Ÿ”’
send_vectored ๐Ÿ”’
sendmsg ๐Ÿ”’
set_msghdr_control ๐Ÿ”’
set_msghdr_flags ๐Ÿ”’
set_msghdr_iov ๐Ÿ”’
set_msghdr_name ๐Ÿ”’
set_nonblocking ๐Ÿ”’
set_tcp_keepalive ๐Ÿ”’
set_timeout_opt ๐Ÿ”’
Wrapper around setsockopt to deal with platform specific timeouts.
setsockopt ๐Ÿ”’ โš 
Caller must ensure T is the correct type for opt and val.
shutdown ๐Ÿ”’
socket ๐Ÿ”’
socket_as_raw ๐Ÿ”’
socket_from_raw ๐Ÿ”’ โš 
socket_into_raw ๐Ÿ”’
socketpair ๐Ÿ”’
timeout_opt ๐Ÿ”’
Wrapper around getsockopt to deal with platform specific timeouts.
to_in6_addr ๐Ÿ”’
to_in_addr ๐Ÿ”’
to_mreqn ๐Ÿ”’
try_clone ๐Ÿ”’
unix_sockaddr ๐Ÿ”’

Type Aliasesยง

Bool ๐Ÿ”’
IovLen ๐Ÿ”’
Socket ๐Ÿ”’
c_int ๐Ÿ”’
sa_family_t ๐Ÿ”’
socklen_t ๐Ÿ”’