pub struct MachineState {
pub kernel: Option<Kernel>,
pub limits: Option<Vec<ResourceLimit>>,
pub affinity: Option<Vec<u32>>,
pub memory: Option<Memory>,
pub filesystem: Option<FileSystem>,
pub disk: Option<Disk>,
}Expand description
The machine and process state that a command inherits when it starts, in six
parts. A part that could not be read is None.
Kizz records it with every step that runs, and compares only the parts that a
step names with run(..., machine = [...]).
Fields§
§kernel: Option<Kernel>kernel: the kernel release and version.
limits: Option<Vec<ResourceLimit>>limits: every resource limit, soft and hard, in the platform’s order.
affinity: Option<Vec<u32>>affinity: the CPUs the command may run on, by number, sorted.
memory: Option<Memory>memory: the total and the available memory.
filesystem: Option<FileSystem>filesystem: the type and mount flags of the file system that holds the
working directory.
disk: Option<Disk>disk: the size and free space of that file system.
Trait Implementations§
Source§impl Clone for MachineState
impl Clone for MachineState
Source§impl Debug for MachineState
impl Debug for MachineState
Source§impl Default for MachineState
impl Default for MachineState
impl Eq for MachineState
Source§impl Hash for MachineState
impl Hash for MachineState
Source§impl PartialEq for MachineState
impl PartialEq for MachineState
impl StructuralPartialEq for MachineState
Auto Trait Implementations§
impl Freeze for MachineState
impl RefUnwindSafe for MachineState
impl Send for MachineState
impl Sync for MachineState
impl Unpin for MachineState
impl UnsafeUnpin for MachineState
impl UnwindSafe for MachineState
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