pub struct NamespaceInfo {
pub pid: u64,
pub image_name: String,
pub uts_ns_addr: u64,
pub pid_ns_addr: u64,
pub net_ns_addr: u64,
pub mnt_ns_addr: u64,
pub ipc_ns_addr: u64,
pub cgroup_ns_addr: u64,
pub is_root_ns: bool,
}Expand description
Namespace information extracted from a process’s task_struct.nsproxy.
Fields§
§pid: u64Process ID.
image_name: StringProcess command name (from task_struct.comm).
uts_ns_addr: u64Virtual address of the uts_namespace (hostname/domainname isolation).
pid_ns_addr: u64Virtual address of the pid_namespace (PID isolation).
net_ns_addr: u64Virtual address of the net namespace (network isolation).
mnt_ns_addr: u64Virtual address of the mnt_namespace (mount isolation).
ipc_ns_addr: u64Virtual address of the ipc_namespace (IPC isolation).
cgroup_ns_addr: u64Virtual address of the cgroup_namespace (cgroup isolation).
is_root_ns: boolTrue if this process is in the init (root) namespace.
Determined by comparing all namespace pointers against PID 1’s namespaces. A process in a container will have at least one namespace pointer that differs from init’s.
Trait Implementations§
Source§impl Clone for NamespaceInfo
impl Clone for NamespaceInfo
Source§fn clone(&self) -> NamespaceInfo
fn clone(&self) -> NamespaceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NamespaceInfo
impl Debug for NamespaceInfo
Auto Trait Implementations§
impl Freeze for NamespaceInfo
impl RefUnwindSafe for NamespaceInfo
impl Send for NamespaceInfo
impl Sync for NamespaceInfo
impl Unpin for NamespaceInfo
impl UnsafeUnpin for NamespaceInfo
impl UnwindSafe for NamespaceInfo
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