Struct kernel::ThisModule
source · pub struct ThisModule(/* private fields */);
Expand description
Equivalent to THIS_MODULE
in the C API.
C header: include/linux/export.h
Implementations§
source§impl ThisModule
impl ThisModule
sourcepub const unsafe fn from_ptr(ptr: *mut module) -> ThisModule
pub const unsafe fn from_ptr(ptr: *mut module) -> ThisModule
Creates a ThisModule
given the THIS_MODULE
pointer.
Safety
The pointer must be equal to the right THIS_MODULE
.
Trait Implementations§
impl Sync for ThisModule
Auto Trait Implementations§
impl RefUnwindSafe for ThisModule
impl !Send for ThisModule
impl Unpin for ThisModule
impl UnwindSafe for ThisModule
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