[−][src]Struct nix::sys::sysinfo::SysInfo
System info structure returned by sysinfo
.
Implementations
impl SysInfo
[src]
pub fn load_average(&self) -> (f64, f64, f64)
[src]
Returns the load average tuple.
The returned values represent the load average over time intervals of 1, 5, and 15 minutes, respectively.
pub fn uptime(&self) -> Duration
[src]
Returns the time since system boot.
pub fn process_count(&self) -> u16
[src]
Current number of processes.
pub fn swap_total(&self) -> u64
[src]
Returns the amount of swap memory in Bytes.
pub fn swap_free(&self) -> u64
[src]
Returns the amount of unused swap memory in Bytes.
pub fn ram_total(&self) -> u64
[src]
Returns the total amount of installed RAM in Bytes.
pub fn ram_unused(&self) -> u64
[src]
Returns the amount of completely unused RAM in Bytes.
"Unused" in this context means that the RAM in neither actively used by programs, nor by the operating system as disk cache or buffer. It is "wasted" RAM since it currently serves no purpose.
Trait Implementations
impl Clone for SysInfo
[src]
impl Copy for SysInfo
[src]
impl Debug for SysInfo
[src]
impl Eq for SysInfo
[src]
impl Hash for SysInfo
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SysInfo> for SysInfo
[src]
impl StructuralEq for SysInfo
[src]
impl StructuralPartialEq for SysInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for SysInfo
impl Send for SysInfo
impl Sync for SysInfo
impl Unpin for SysInfo
impl UnwindSafe for SysInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,