Struct lrs::sys::NumInfo

Returns information about the system in form of numbers.

Syntax

struct NumInfo {
    /* private fields */
}

Static methods

NameDescription
new

Creates a new NumInfo.

Methods

ReceiverNameDescription
&selfbuffer_memory
&selffree_high
&selffree_memory

Returns the amount of free memory.

&selffree_swap_memory
&selfload_average_fifteen

Returns the load average of the last fifteen minutes.

&selfload_average_five

Returns the load average of the last five minutes.

&selfload_average_one

Returns the load average of the last minute.

&selfmem_unit
&selfprocesses
&selfshared_memory
&selfswap_memory
&selftotal_high
&selftotal_memory

Returns the total amount of memory.

&mut selfupdate

Retrieves information from the system and stores it in the NumInfo.

&selfuptime

Returns the time since the system was last booted.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

Debug

Objects that can be formatted in a "debug" form.

Eq

Objects that implement the binary == and != operators.

MaybeClone

Objects that can be duplicated.

Pod

Objects that are safe to use if they contain a random bit pattern.