pub struct PlatformDevice {
pub descriptor: Descriptor,
}
Fields§
§descriptor: Descriptor
Implementations§
Source§impl PlatformDevice
impl PlatformDevice
Sourcepub fn register<T: DriverGeneric>(self, driver: T)
pub fn register<T: DriverGeneric>(self, driver: T)
Register a device to the driver manager.
§Panics
This method will panic if the device with the same ID is already added
pub fn register_pcie(self, drv: PcieController)
Auto Trait Implementations§
impl Freeze for PlatformDevice
impl RefUnwindSafe for PlatformDevice
impl Send for PlatformDevice
impl Sync for PlatformDevice
impl Unpin for PlatformDevice
impl UnwindSafe for PlatformDevice
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