Struct kernel::driver::Registration
source · [−]pub struct Registration<T: DriverOps> { /* private fields */ }
Expand description
The registration of a driver.
Implementations
sourceimpl<T: DriverOps> Registration<T>
impl<T: DriverOps> Registration<T>
sourcepub fn new_pinned(
name: &'static CStr,
module: &'static ThisModule
) -> Result<Pin<Box<Self>>>
pub fn new_pinned(
name: &'static CStr,
module: &'static ThisModule
) -> Result<Pin<Box<Self>>>
Allocates a pinned registration object and registers it.
Returns a pinned heap-allocated representation of the registration.
Trait Implementations
sourceimpl<T: DriverOps> Default for Registration<T>
impl<T: DriverOps> Default for Registration<T>
sourceimpl<T: DriverOps> Drop for Registration<T>
impl<T: DriverOps> Drop for Registration<T>
impl<T: DriverOps> Sync for Registration<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for Registration<T>
impl<T> Send for Registration<T> where
<T as DriverOps>::RegType: Send,
impl<T> Unpin for Registration<T> where
<T as DriverOps>::RegType: Unpin,
impl<T> UnwindSafe for Registration<T> where
<T as DriverOps>::RegType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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