Struct lrs::sys::StrInfo

Returns information about the system in form of strings.

Syntax

struct StrInfo {
    /* private fields */
}

Static methods

NameDescription
new

Creates a new StrInfo.

Methods

ReceiverNameDescription
&selfdomain_name

Returns the domain name of the system.

&selfhost_name

Returns the hostname of the system.

&selfmachine

Returns the machine.

&selfrelease

Returns the kernel release of the system.

&selfsystem_name

Returns the name of the system.

&mut selfupdate

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

&selfversion

Returns the kernel version of the system.

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.