pub struct KernelModules(pub HashMap<String, KernelModule>);
Expand description
A set of loaded kernel modules
Tuple Fields§
§0: HashMap<String, KernelModule>
Trait Implementations§
source§impl Clone for KernelModules
impl Clone for KernelModules
source§fn clone(&self) -> KernelModules
fn clone(&self) -> KernelModules
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 KernelModules
impl Debug for KernelModules
source§impl<'de> Deserialize<'de> for KernelModules
impl<'de> Deserialize<'de> for KernelModules
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
source§impl FromBufRead for KernelModules
impl FromBufRead for KernelModules
source§fn from_buf_read<R: BufRead>(r: R) -> ProcResult<Self>
fn from_buf_read<R: BufRead>(r: R) -> ProcResult<Self>
This should correspond to the data in /proc/modules
.
Auto Trait Implementations§
impl Freeze for KernelModules
impl RefUnwindSafe for KernelModules
impl Send for KernelModules
impl Sync for KernelModules
impl Unpin for KernelModules
impl UnwindSafe for KernelModules
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
)