]>
git.proxmox.com Git - rustc.git/blob - vendor/rustix/src/backend/libc/net/send_recv.rs
2 use bitflags
::bitflags
;
5 /// `MSG_*` flags for use with [`send`], [`send_to`], and related
8 /// [`send`]: crate::net::send
9 /// [`sendto`]: crate::net::sendto
11 #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
12 pub struct SendFlags
: u32 {
24 const CONFIRM
= bitcast
!(c
::MSG_CONFIRM
);
26 const DONTROUTE
= bitcast
!(c
::MSG_DONTROUTE
);
29 const DONTWAIT
= bitcast
!(c
::MSG_DONTWAIT
);
32 const EOT
= bitcast
!(c
::MSG_EOR
);
43 const MORE
= bitcast
!(c
::MSG_MORE
);
44 #[cfg(not(any(apple, windows, target_os = "vita")))]
46 const NOSIGNAL
= bitcast
!(c
::MSG_NOSIGNAL
);
48 const OOB
= bitcast
!(c
::MSG_OOB
);
50 /// <https://docs.rs/bitflags/*/bitflags/#externally-defined-flags>
56 /// `MSG_*` flags for use with [`recv`], [`recvfrom`], and related
59 /// [`recv`]: crate::net::recv
60 /// [`recvfrom`]: crate::net::recvfrom
62 #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
63 pub struct RecvFlags
: u32 {
74 /// `MSG_CMSG_CLOEXEC`
75 const CMSG_CLOEXEC
= bitcast
!(c
::MSG_CMSG_CLOEXEC
);
78 const DONTWAIT
= bitcast
!(c
::MSG_DONTWAIT
);
90 const ERRQUEUE
= bitcast
!(c
::MSG_ERRQUEUE
);
92 const OOB
= bitcast
!(c
::MSG_OOB
);
94 const PEEK
= bitcast
!(c
::MSG_PEEK
);
96 const TRUNC
= bitcast
!(c
::MSG_TRUNC
);
98 const WAITALL
= bitcast
!(c
::MSG_WAITALL
);
100 /// <https://docs.rs/bitflags/*/bitflags/#externally-defined-flags>