• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use super::super::c;
2 use bitflags::bitflags;
3 
4 bitflags! {
5     /// `MSG_*`
6     pub struct SendFlags: u32 {
7         /// `MSG_CONFIRM`
8         const CONFIRM = c::MSG_CONFIRM;
9         /// `MSG_DONTROUTE`
10         const DONTROUTE = c::MSG_DONTROUTE;
11         /// `MSG_DONTWAIT`
12         const DONTWAIT = c::MSG_DONTWAIT;
13         /// `MSG_EOT`
14         const EOT = c::MSG_EOR;
15         /// `MSG_MORE`
16         const MORE = c::MSG_MORE;
17         /// `MSG_NOSIGNAL`
18         const NOSIGNAL = c::MSG_NOSIGNAL;
19         /// `MSG_OOB`
20         const OOB = c::MSG_OOB;
21     }
22 }
23 
24 bitflags! {
25     /// `MSG_*`
26     pub struct RecvFlags: u32 {
27         /// `MSG_CMSG_CLOEXEC`
28         const CMSG_CLOEXEC = c::MSG_CMSG_CLOEXEC;
29         /// `MSG_DONTWAIT`
30         const DONTWAIT = c::MSG_DONTWAIT;
31         /// `MSG_ERRQUEUE`
32         const ERRQUEUE = c::MSG_ERRQUEUE;
33         /// `MSG_OOB`
34         const OOB = c::MSG_OOB;
35         /// `MSG_PEEK`
36         const PEEK = c::MSG_PEEK;
37         /// `MSG_TRUNC`
38         const TRUNC = c::MSG_TRUNC;
39         /// `MSG_WAITALL`
40         const WAITALL = c::MSG_WAITALL;
41     }
42 }
43