Struct procfs::KernelModule[][src]

pub struct KernelModule {
    pub name: String,
    pub size: u32,
    pub refcount: i32,
    pub used_by: Vec<String>,
    pub state: String,
}
Expand description

Details about a loaded kernel module

For an example, see the lsmod.rs example in the source repo.

Fields

name: String

The name of the module

size: u32

The size of the module

refcount: i32

The number of references in the kernel to this module. This can be -1 if the module is unloading

used_by: Vec<String>

A list of modules that depend on this module.

state: String

The module state

This will probably always be “Live”, but it could also be either “Unloading” or “Loading”

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.