pub struct Module<T: DriverOps> { /* private fields */ }
Expand description
A kernel module that only registers the given driver on init.
This is a helper struct to make it easier to define single-functionality modules, in this case, modules that offer a single driver.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Module<T>
impl<T> Send for Module<T>where
<T as DriverOps>::RegType: Send,
impl<T> Sync for Module<T>
impl<T> Unpin for Module<T>
impl<T> UnwindSafe for Module<T>where
<T as DriverOps>::RegType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more