pub struct ModuleParamAccess<T> { /* private fields */ }Expand description
A wrapper for kernel parameters.
This type is instantiated by the module! macro when module parameters are
defined. You should never need to instantiate this type directly.
Note: This type is pub because it is used by module crates to access
parameter values.
Implementations§
Source§impl<T> ModuleParamAccess<T>
impl<T> ModuleParamAccess<T>
Trait Implementations§
impl<T: Sync> Sync for ModuleParamAccess<T>
Auto Trait Implementations§
impl<T> !Freeze for ModuleParamAccess<T>
impl<T> !RefUnwindSafe for ModuleParamAccess<T>
impl<T> Send for ModuleParamAccess<T>where
T: Send,
impl<T> Unpin for ModuleParamAccess<T>where
T: Unpin,
impl<T> UnwindSafe for ModuleParamAccess<T>where
T: UnwindSafe,
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> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more