pub struct DeviceDriverDescriptor {
device_driver: &'static (dyn DeviceDriver + Sync),
post_init_callback: Option<unsafe fn() -> Result<(), &'static str>>,
}Expand description
A descriptor for device drivers.
Fields§
§device_driver: &'static (dyn DeviceDriver + Sync)§post_init_callback: Option<unsafe fn() -> Result<(), &'static str>>Implementations§
Trait Implementations§
Source§impl Clone for DeviceDriverDescriptor
impl Clone for DeviceDriverDescriptor
Source§fn clone(&self) -> DeviceDriverDescriptor
fn clone(&self) -> DeviceDriverDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeviceDriverDescriptor
Auto Trait Implementations§
impl Freeze for DeviceDriverDescriptor
impl !RefUnwindSafe for DeviceDriverDescriptor
impl Send for DeviceDriverDescriptor
impl Sync for DeviceDriverDescriptor
impl Unpin for DeviceDriverDescriptor
impl !UnwindSafe for DeviceDriverDescriptor
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