pub struct CpuPinningInfo {
pub pid: u64,
pub comm: String,
pub pinned_cpu_count: u32,
pub total_cpu_count: u32,
pub sched_policy: u32,
pub cpu_time_ns: u64,
}Expand description
CPU affinity / cryptominer detection info.
Fields§
§pid: u64Process ID.
comm: StringProcess command name.
pinned_cpu_count: u32Number of CPUs this process is restricted to.
total_cpu_count: u32Total number of CPUs on the system.
sched_policy: u32Scheduling policy (SCHED_NORMAL=0, SCHED_BATCH=3, SCHED_IDLE=5).
cpu_time_ns: u64CPU time in nanoseconds (utime + stime).
Trait Implementations§
Source§impl Clone for CpuPinningInfo
impl Clone for CpuPinningInfo
Source§fn clone(&self) -> CpuPinningInfo
fn clone(&self) -> CpuPinningInfo
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 CpuPinningInfo
impl Debug for CpuPinningInfo
Source§impl IntoForensicEvents for CpuPinningInfo
impl IntoForensicEvents for CpuPinningInfo
Source§fn into_forensic_events(self) -> Vec<ForensicEvent>
fn into_forensic_events(self) -> Vec<ForensicEvent>
Consume this value and produce forensic events.
Auto Trait Implementations§
impl Freeze for CpuPinningInfo
impl RefUnwindSafe for CpuPinningInfo
impl Send for CpuPinningInfo
impl Sync for CpuPinningInfo
impl Unpin for CpuPinningInfo
impl UnsafeUnpin for CpuPinningInfo
impl UnwindSafe for CpuPinningInfo
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