Struct kernel::net::phy::Registration
source · pub struct Registration { /* private fields */ }
Expand description
Registration structure for PHY drivers.
Registers DriverVTable
instances with the kernel. They will be unregistered when dropped.
Invariants
The drivers
slice are currently registered to the kernel via phy_drivers_register
.
Implementations§
source§impl Registration
impl Registration
sourcepub fn register(
module: &'static ThisModule,
drivers: Pin<&'static mut [DriverVTable]>
) -> Result<Self>
pub fn register( module: &'static ThisModule, drivers: Pin<&'static mut [DriverVTable]> ) -> Result<Self>
Registers a PHY driver.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Registration
impl !Send for Registration
impl Sync for Registration
impl Unpin for Registration
impl !UnwindSafe for Registration
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