diff options
Diffstat (limited to 'vendor/rustix/src/thread/setns.rs')
-rw-r--r-- | vendor/rustix/src/thread/setns.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/rustix/src/thread/setns.rs b/vendor/rustix/src/thread/setns.rs index 81c9225e3..2669cc7a7 100644 --- a/vendor/rustix/src/thread/setns.rs +++ b/vendor/rustix/src/thread/setns.rs @@ -11,6 +11,8 @@ use crate::io; bitflags! { /// Thread name space type. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] pub struct ThreadNameSpaceType: u32 { /// Time name space. const TIME = CLONE_NEWTIME; @@ -55,6 +57,8 @@ pub enum LinkNameSpaceType { bitflags! { /// `CLONE_*` for use with [`unshare`]. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] pub struct UnshareFlags: u32 { /// `CLONE_FILES`. const FILES = CLONE_FILES; |