pub struct PlatformDevice {
pub descriptor: Descriptor,
}Fields§
§descriptor: DescriptorImplementations§
Source§impl PlatformDevice
impl PlatformDevice
Sourcepub fn register<T>(self, driver: T)where
T: DriverGeneric,
pub fn register<T>(self, driver: T)where
T: DriverGeneric,
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 UnsafeUnpin 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