Struct perf_event_data::Namespaces
source · 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: u32Process ID.
tid: u32Thread 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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> 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