pub struct SystemRecorder { /* private fields */ }Implementations§
Source§impl SystemRecorder
impl SystemRecorder
pub fn new(host_executor: HostNamespaceExecutor) -> Self
Sourcepub async fn run_all(&self) -> CheckGroupResult
pub async fn run_all(&self) -> CheckGroupResult
Run all the recorders asynchronously, then join and collect the results.
Sourcepub async fn record_lspci(&self) -> CheckResult
pub async fn record_lspci(&self) -> CheckResult
Records verbose PCI device listing.
Manual equivalent:
lspci -vvvSourcepub async fn record_dmidecode(&self) -> CheckResult
pub async fn record_dmidecode(&self) -> CheckResult
Records DMI/SMBIOS hardware information (BIOS, board, chassis, CPU, memory).
Manual equivalent:
dmidecodeSourcepub async fn record_cpuinfo(&self) -> CheckResult
pub async fn record_cpuinfo(&self) -> CheckResult
Records CPU hardware details and feature flags.
Manual equivalent:
cat /proc/cpuinfoSourcepub async fn record_cmdline(&self) -> CheckResult
pub async fn record_cmdline(&self) -> CheckResult
Records the kernel command line used to boot the running kernel.
Manual equivalent:
cat /proc/cmdlineSourcepub async fn record_grub_cfg(&self) -> CheckResult
pub async fn record_grub_cfg(&self) -> CheckResult
Records the GRUB bootloader configuration. Checks /boot/grub2/grub.cfg first,
falling back to /boot/grub/grub.cfg.
Manual equivalent:
cat /boot/grub2/grub.cfg || cat /boot/grub/grub.cfgSourcepub async fn record_kernel_cfg(&self) -> CheckResult
pub async fn record_kernel_cfg(&self) -> CheckResult
Records the kernel build configuration. Checks /proc/config.gz first (decompressing
if needed), falling back to /boot/config-$(uname -r).
Manual equivalent:
zcat /proc/config.gz || cat /boot/config-$(uname -r)Sourcepub async fn record_loaded_modules(&self) -> CheckResult
pub async fn record_loaded_modules(&self) -> CheckResult
Records the list of currently loaded kernel modules.
Manual equivalent:
cut -d' ' -f1 /proc/modulesAuto Trait Implementations§
impl Freeze for SystemRecorder
impl RefUnwindSafe for SystemRecorder
impl Send for SystemRecorder
impl Sync for SystemRecorder
impl Unpin for SystemRecorder
impl UnsafeUnpin for SystemRecorder
impl UnwindSafe for SystemRecorder
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