pub struct Registration<T: RegistrationOps> { /* private fields */ }
Expand description
A Registration
is a generic type that represents the registration of some driver type (e.g.
bindings::pci_driver
). Therefore a Registration
must be initialized with a type that
implements the RegistrationOps
trait, such that the generic T::register
and
T::unregister
calls result in the subsystem specific registration calls.
Once the Registration
structure is dropped, the driver is unregistered.
Implementations§
Source§impl<T: RegistrationOps> Registration<T>
impl<T: RegistrationOps> Registration<T>
Trait Implementations§
Source§impl<T: RegistrationOps> Drop for Registration<T>
impl<T: RegistrationOps> Drop for Registration<T>
Source§impl<T: RegistrationOps> HasPinData for Registration<T>
impl<T: RegistrationOps> HasPinData for Registration<T>
Source§impl<T: RegistrationOps> PinnedDrop for Registration<T>
impl<T: RegistrationOps> PinnedDrop for Registration<T>
impl<T: RegistrationOps> Send for Registration<T>
impl<T: RegistrationOps> Sync for Registration<T>
Auto Trait Implementations§
impl<T> !Freeze for Registration<T>
impl<T> !RefUnwindSafe for Registration<T>
impl<T> UnwindSafe for Registration<T>
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