pub struct DeviceInfo {
pub id: u64,
pub name: String,
pub class: DeviceClass,
pub device_id: Option<DeviceId>,
pub driver: Option<String>,
pub bus: String,
pub address: u64,
pub irq: Option<u8>,
pub dma_channels: Vec<u8>,
pub io_ports: Vec<(u16, u16)>,
pub memory_regions: Vec<(u64, u64)>,
pub status: DeviceStatus,
}Expand description
Device information
Fields§
§id: u64§name: String§class: DeviceClass§device_id: Option<DeviceId>§driver: Option<String>§bus: String§address: u64§irq: Option<u8>§dma_channels: Vec<u8>§io_ports: Vec<(u16, u16)>§memory_regions: Vec<(u64, u64)>§status: DeviceStatusTrait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)