[−][src]Struct nix::sys::sysinfo::SysInfo
System info structure returned by sysinfo
.
Methods
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]
fn clone(&self) -> SysInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SysInfo
[src]
Auto Trait Implementations
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,