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§
source§impl Clone for KernelModule
impl Clone for KernelModule
source§fn clone(&self) -> KernelModule
fn clone(&self) -> KernelModule
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KernelModule
impl Debug for KernelModule
source§impl<'de> Deserialize<'de> for KernelModule
impl<'de> Deserialize<'de> for KernelModule
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KernelModule
impl RefUnwindSafe for KernelModule
impl Send for KernelModule
impl Sync for KernelModule
impl Unpin for KernelModule
impl UnwindSafe for KernelModule
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)