pub struct Namespaces<'a> {
pub pid: u32,
pub tid: u32,
pub namespaces: Cow<'a, [NamespaceEntry]>,
}
Expand description
NAMESPACES records include namespace information of a process.
This struct corresponds to PERF_RECORD_NAMESPACES
. See the manpage for
more documentation.
Fields§
§pid: u32
Process ID.
tid: u32
Thread ID.
namespaces: Cow<'a, [NamespaceEntry]>
Entries for various namespaces.
Specific namespaces have fixed indices within this array. Accessors have been provided for some of these. See the manpage for the full documentation.
Implementations§
Source§impl<'a> Namespaces<'a>
impl<'a> Namespaces<'a>
Sourcepub fn network(&self) -> Option<&NamespaceEntry>
pub fn network(&self) -> Option<&NamespaceEntry>
Network namepsace
Sourcepub fn uts(&self) -> Option<&NamespaceEntry>
pub fn uts(&self) -> Option<&NamespaceEntry>
UTS namespace.
Sourcepub fn ipc(&self) -> Option<&NamespaceEntry>
pub fn ipc(&self) -> Option<&NamespaceEntry>
IPC namespace.
Sourcepub fn pid(&self) -> Option<&NamespaceEntry>
pub fn pid(&self) -> Option<&NamespaceEntry>
PID namespace.
Sourcepub fn user(&self) -> Option<&NamespaceEntry>
pub fn user(&self) -> Option<&NamespaceEntry>
User namespace.
Sourcepub fn cgroup(&self) -> Option<&NamespaceEntry>
pub fn cgroup(&self) -> Option<&NamespaceEntry>
Cgroup namespace.
Trait Implementations§
Source§impl<'a> Clone for Namespaces<'a>
impl<'a> Clone for Namespaces<'a>
Source§fn clone(&self) -> Namespaces<'a>
fn clone(&self) -> Namespaces<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for Namespaces<'a>
impl<'a> Debug for Namespaces<'a>
Source§impl<'a> From<Namespaces<'a>> for Record<'a>
impl<'a> From<Namespaces<'a>> for Record<'a>
Source§fn from(value: Namespaces<'a>) -> Self
fn from(value: Namespaces<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Namespaces<'a>
impl<'a> RefUnwindSafe for Namespaces<'a>
impl<'a> Send for Namespaces<'a>
impl<'a> Sync for Namespaces<'a>
impl<'a> Unpin for Namespaces<'a>
impl<'a> UnwindSafe for Namespaces<'a>
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