pub struct MachineStateRecord {
pub kernel: Option<KernelRecord>,
pub limits: Option<Vec<LimitRecord>>,
pub affinity: Option<Vec<u32>>,
pub memory: Option<MemoryRecord>,
pub filesystem: Option<FileSystemRecord>,
pub disk: Option<DiskRecord>,
}Expand description
The machine and process state that a command started with, as its step record
keeps it, in the six parts of MachinePart. A part that could not be read is
None, which explanations show as unknown.
Fields§
§kernel: Option<KernelRecord>kernel: the kernel release and version.
limits: Option<Vec<LimitRecord>>limits: every resource limit, soft and hard, in the platform’s order.
affinity: Option<Vec<u32>>affinity: the CPUs the command could run on, by number, sorted.
memory: Option<MemoryRecord>memory: the total and the available memory.
filesystem: Option<FileSystemRecord>filesystem: the type and mount flags of the file system that held the
working directory.
disk: Option<DiskRecord>disk: the size and free space of that file system.
Implementations§
Source§impl MachineStateRecord
impl MachineStateRecord
Sourcepub fn values(&self, part: MachinePart) -> Option<Vec<(String, String)>>
pub fn values(&self, part: MachinePart) -> Option<Vec<(String, String)>>
Each value of the part part, named, as text, in order, or None when the
part could not be read.
Sourcepub fn text(&self, part: MachinePart) -> String
pub fn text(&self, part: MachinePart) -> String
The part part on one line: each value with its name, such as kernel release 6.12.0, kernel version #1 SMP, or unknown when the part could not
be read.
Trait Implementations§
Source§impl Clone for MachineStateRecord
impl Clone for MachineStateRecord
Source§impl Debug for MachineStateRecord
impl Debug for MachineStateRecord
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for MachineStateRecord
impl<'bytes, Ctx> Decode<'bytes, Ctx> for MachineStateRecord
Source§impl Default for MachineStateRecord
impl Default for MachineStateRecord
Source§impl<Ctx> Encode<Ctx> for MachineStateRecord
impl<Ctx> Encode<Ctx> for MachineStateRecord
impl Eq for MachineStateRecord
Source§impl Hash for MachineStateRecord
impl Hash for MachineStateRecord
Source§impl PartialEq for MachineStateRecord
impl PartialEq for MachineStateRecord
impl StructuralPartialEq for MachineStateRecord
Auto Trait Implementations§
impl Freeze for MachineStateRecord
impl RefUnwindSafe for MachineStateRecord
impl Send for MachineStateRecord
impl Sync for MachineStateRecord
impl Unpin for MachineStateRecord
impl UnsafeUnpin for MachineStateRecord
impl UnwindSafe for MachineStateRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.