@@ -121,6 +121,7 @@ include!("bitflags.rs");
121
121
/// File or memory access pattern advisory information.
122
122
#[ repr( u8 ) ]
123
123
#[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
124
+ #[ non_exhaustive]
124
125
pub enum advice {
125
126
/// The application expects that it will not access the
126
127
/// specified data in the near future.
@@ -140,12 +141,12 @@ pub enum advice {
140
141
/// The application expects to access the specified data
141
142
/// in the near future.
142
143
WILLNEED = 6 ,
143
- #[ doc( hidden) ] _NonExhaustive = -1 as isize as u8 ,
144
144
}
145
145
146
146
/// Enumeration describing the kind of value stored in [`auxv`](struct.auxv.html).
147
147
#[ repr( u32 ) ]
148
148
#[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
149
+ #[ non_exhaustive]
149
150
pub enum auxtype {
150
151
/// Base address of the binary argument data provided to
151
152
/// [`proc_exec()`](fn.proc_exec.html).
@@ -210,12 +211,12 @@ pub enum auxtype {
210
211
SYSINFO_EHDR = 262 ,
211
212
/// Thread ID of the initial thread of the process.
212
213
TID = 261 ,
213
- #[ doc( hidden) ] _NonExhaustive = -1 as isize as u32 ,
214
214
}
215
215
216
216
/// Identifiers for clocks.
217
217
#[ repr( u32 ) ]
218
218
#[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
219
+ #[ non_exhaustive]
219
220
pub enum clockid {
220
221
/// The system-wide monotonic clock, which is defined as a
221
222
/// clock measuring real time, whose value cannot be
@@ -232,7 +233,6 @@ pub enum clockid {
232
233
REALTIME = 3 ,
233
234
/// The CPU-time clock associated with the current thread.
234
235
THREAD_CPUTIME_ID = 4 ,
235
- #[ doc( hidden) ] _NonExhaustive = -1 as isize as u32 ,
236
236
}
237
237
238
238
/// A userspace condition variable.
@@ -267,6 +267,7 @@ pub const DIRCOOKIE_START: dircookie = dircookie(0);
267
267
/// exclusively or merely provided for alignment with POSIX.
268
268
#[ repr( u16 ) ]
269
269
#[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
270
+ #[ non_exhaustive]
270
271
pub enum errno {
271
272
/// No error occurred. System call completed successfully.
272
273
SUCCESS = 0 ,
@@ -422,7 +423,6 @@ pub enum errno {
422
423
XDEV = 75 ,
423
424
/// Extension: Capabilities insufficient.
424
425
NOTCAPABLE = 76 ,
425
- #[ doc( hidden) ] _NonExhaustive = -1 as isize as u16 ,
426
426
}
427
427
428
428
bitflags ! {
@@ -438,6 +438,7 @@ bitflags! {
438
438
/// Type of a subscription to an event or its occurrence.
439
439
#[ repr( u8 ) ]
440
440
#[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
441
+ #[ non_exhaustive]
441
442
pub enum eventtype {
442
443
/// The time value of clock [`subscription.union.clock.clock_id`](struct.subscription_clock.html#structfield.clock_id)
443
444
/// has reached timestamp [`subscription.union.clock.timeout`](struct.subscription_clock.html#structfield.timeout).
@@ -463,7 +464,6 @@ pub enum eventtype {
463
464
/// The process associated with process descriptor
464
465
/// [`subscription.union.proc_terminate.fd`](struct.subscription_proc_terminate.html#structfield.fd) has terminated.
465
466
PROC_TERMINATE = 7 ,
466
- #[ doc( hidden) ] _NonExhaustive = -1 as isize as u8 ,
467
467
}
468
468
469
469
/// Exit code generated by a process when exiting.
@@ -530,6 +530,7 @@ pub type filesize = u64;
530
530
/// The type of a file descriptor or file.
531
531
#[ repr( u8 ) ]
532
532
#[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
533
+ #[ non_exhaustive]
533
534
pub enum filetype {
534
535
/// The type of the file descriptor or file is unknown or
535
536
/// is different from any of the other types specified.
@@ -558,7 +559,6 @@ pub enum filetype {
558
559
SOCKET_STREAM = 130 ,
559
560
/// The file refers to a symbolic link inode.
560
561
SYMBOLIC_LINK = 144 ,
561
- #[ doc( hidden) ] _NonExhaustive = -1 as isize as u8 ,
562
562
}
563
563
564
564
bitflags ! {
@@ -847,12 +847,12 @@ bitflags! {
847
847
/// memory.
848
848
#[ repr( u8 ) ]
849
849
#[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
850
+ #[ non_exhaustive]
850
851
pub enum scope {
851
852
/// The object is stored in private memory.
852
853
PRIVATE = 4 ,
853
854
/// The object is stored in shared memory.
854
855
SHARED = 8 ,
855
- #[ doc( hidden) ] _NonExhaustive = -1 as isize as u8 ,
856
856
}
857
857
858
858
bitflags ! {
@@ -878,6 +878,7 @@ bitflags! {
878
878
/// Signal condition.
879
879
#[ repr( u8 ) ]
880
880
#[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
881
+ #[ non_exhaustive]
881
882
pub enum signal {
882
883
/// Process abort signal.
883
884
///
@@ -983,7 +984,6 @@ pub enum signal {
983
984
///
984
985
/// Action: Terminates the process.
985
986
XFSZ = 26 ,
986
- #[ doc( hidden) ] _NonExhaustive = -1 as isize as u8 ,
987
987
}
988
988
989
989
bitflags ! {
@@ -1049,14 +1049,14 @@ pub type userdata = u64;
1049
1049
/// should be set.
1050
1050
#[ repr( u8 ) ]
1051
1051
#[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
1052
+ #[ non_exhaustive]
1052
1053
pub enum whence {
1053
1054
/// Seek relative to current position.
1054
1055
CUR = 1 ,
1055
1056
/// Seek relative to end-of-file.
1056
1057
END = 2 ,
1057
1058
/// Seek relative to start-of-file.
1058
1059
SET = 3 ,
1059
- #[ doc( hidden) ] _NonExhaustive = -1 as isize as u8 ,
1060
1060
}
1061
1061
1062
1062
/// Auxiliary vector entry.
0 commit comments