Struct KernelModuleHandle
pub(crate) struct KernelModuleHandle {
_private: (),
}Available on Android or Linux only.
Expand description
A handle to the loaded kernel module.
The kernel module is automatically unloaded when the handle is dropped.
Fields§
§_private: ()Implementations§
§impl KernelModuleHandle
impl KernelModuleHandle
pub(crate) fn reload(config: Config) -> Result<Self>
pub(crate) fn reload(config: Config) -> Result<Self>
Reloads the kernel module with config.
§Errors
Returns io::ErrorKind::ResourceBusy if another process uses the
module, or another error if the module can’t be unloaded or loaded.
Trait Implementations§
§impl Drop for KernelModuleHandle
impl Drop for KernelModuleHandle
Auto Trait Implementations§
impl Freeze for KernelModuleHandle
impl RefUnwindSafe for KernelModuleHandle
impl Send for KernelModuleHandle
impl Sync for KernelModuleHandle
impl Unpin for KernelModuleHandle
impl UnsafeUnpin for KernelModuleHandle
impl UnwindSafe for KernelModuleHandle
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