#[repr(u8)]pub enum DeviceClass {
Network = 0,
Storage = 1,
Graphics = 2,
Serial = 3,
Timer = 4,
InterruptController = 5,
Generic = 255,
}Expand description
Classification of device types.
Variants§
Network = 0
Network interface controller.
Storage = 1
Block storage device.
Graphics = 2
GPU or display controller.
Serial = 3
Serial / UART console.
Timer = 4
Timer / clock device.
InterruptController = 5
Interrupt controller.
Generic = 255
Generic MMIO device.
Trait Implementations§
Source§impl Clone for DeviceClass
impl Clone for DeviceClass
Source§fn clone(&self) -> DeviceClass
fn clone(&self) -> DeviceClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeviceClass
Source§impl Debug for DeviceClass
impl Debug for DeviceClass
impl Eq for DeviceClass
Source§impl Hash for DeviceClass
impl Hash for DeviceClass
Source§impl PartialEq for DeviceClass
impl PartialEq for DeviceClass
impl StructuralPartialEq for DeviceClass
Auto Trait Implementations§
impl Freeze for DeviceClass
impl RefUnwindSafe for DeviceClass
impl Send for DeviceClass
impl Sync for DeviceClass
impl Unpin for DeviceClass
impl UnsafeUnpin for DeviceClass
impl UnwindSafe for DeviceClass
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