#[non_exhaustive]pub enum PidFdGetNamespace {
Cgroup,
Ipc,
Mnt,
Net,
Pid,
PidForChildren,
Time,
TimeForChildren,
User,
Uts,
}Expand description
Linux namespace types that can be queried from a pidfd.
Used with PidFdExt::get_namespace to obtain
a file descriptor to a specific namespace of a process.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cgroup
Control group namespace
Ipc
IPC namespace (System V IPC, POSIX message queues)
Mnt
Mount namespace (filesystem mount points)
Net
Network namespace (network devices, stacks, ports, etc.)
Pid
PID namespace
PidForChildren
PID namespace for child processes
Time
Time namespace
TimeForChildren
Time namespace for child processes
User
User namespace (user and group IDs)
Uts
UTS namespace (hostname and NIS domain name)
Auto Trait Implementations§
impl Freeze for PidFdGetNamespace
impl RefUnwindSafe for PidFdGetNamespace
impl Send for PidFdGetNamespace
impl Sync for PidFdGetNamespace
impl Unpin for PidFdGetNamespace
impl UnsafeUnpin for PidFdGetNamespace
impl UnwindSafe for PidFdGetNamespace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more