Struct lief::elf::note::core::prstatus::Status

pub struct Status {
Show 15 fields pub cursig: u16, pub sigpend: u64, pub sighold: u64, pub pid: i32, pub ppid: i32, pub pgrp: i32, pub sid: i32, pub signo: i32, pub sigcode: i32, pub sigerr: i32, pub reserved: u16, pub utime: Duration, pub stime: Duration, pub cutime: Duration, pub cstime: Duration,
}
Expand description

Status information from a core dump

This structure mirrors the kernel’s prstatus data embedded in NT_PRSTATUS core-dump notes and exposes signal state, process identifiers, and CPU-time accounting.

Fields§

§cursig: u16

Current signal number being delivered

§sigpend: u64

Set of pending signals (bitmask)

§sighold: u64

Set of held (blocked) signals (bitmask)

§pid: i32

Process ID

§ppid: i32

Parent process ID

§pgrp: i32

Process group ID

§sid: i32

Session ID

§signo: i32

Signal number that caused the core dump

§sigcode: i32

Signal code providing additional detail

§sigerr: i32

Error number associated with the signal

§reserved: u16

Reserved field for alignment

§utime: Duration

User CPU time consumed by the process

§stime: Duration

System CPU time consumed by the process

§cutime: Duration

User CPU time consumed by waited-for children

§cstime: Duration

System CPU time consumed by waited-for children

Trait Implementations§

§

impl Debug for Status

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.