Crate sysinfo_dot_h

Source
Expand description

This crate uses raw FFI bindings to easily and quickly get and use the <sys/sysinfo.h> struct. Please read the README if you want to know more.

Internally, this crate calls unsafe {} because of FFI. You, the programmer, are ultimately responsible for any downtime in prod or similar

Structs§

sysinfo

Functions§

collect
A wrapper to C to get the sysinfo struct.
sysinfo
The sysinfo struct. Should be the same as it is in C.
try_collect
A wrapper to C to get the sysinfo struct.