#[non_exhaustive]#[repr(u8)]pub enum Id {
Show 41 variants
Reserved = 0,
Net = 1,
Block = 2,
Console = 3,
Rng = 4,
Balloon = 5,
IoMem = 6,
Rpmsg = 7,
Scsi = 8,
NineP = 9,
Mac80211Wlan = 10,
RprocSerial = 11,
Caif = 12,
MemoryBalloon = 13,
Gpu = 16,
Clock = 17,
Input = 18,
Vsock = 19,
Crypto = 20,
SignalDist = 21,
Pstore = 22,
Iommu = 23,
Mem = 24,
Sound = 25,
Fs = 26,
Pmem = 27,
Rpmb = 28,
Mac80211Hwsim = 29,
VideoEncoder = 30,
VideoDecoder = 31,
Scmi = 32,
NitroSecMod = 33,
I2cAdapter = 34,
Watchdog = 35,
Can = 36,
ParamServ = 38,
AudioPolicy = 39,
Bt = 40,
Gpio = 41,
Rdma = 42,
Unknown(u8),
}
Expand description
Virtio Device IDs
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Reserved = 0
reserved (invalid)
Net = 1
network card
Block = 2
block device
Console = 3
console
Rng = 4
entropy source
Balloon = 5
memory ballooning (traditional)
IoMem = 6
ioMemory
Rpmsg = 7
rpmsg
Scsi = 8
SCSI host
NineP = 9
9P transport
Mac80211Wlan = 10
mac80211 wlan
RprocSerial = 11
rproc serial
Caif = 12
virtio CAIF
MemoryBalloon = 13
memory balloon
Gpu = 16
GPU device
Clock = 17
Timer/Clock device
Input = 18
Input device
Vsock = 19
Socket device
Crypto = 20
Crypto device
SignalDist = 21
Signal Distribution Module
Pstore = 22
pstore device
Iommu = 23
IOMMU device
Mem = 24
Memory device
Sound = 25
Audio device
Fs = 26
file system device
Pmem = 27
PMEM device
Rpmb = 28
RPMB device
Mac80211Hwsim = 29
mac80211 hwsim wireless simulation device
VideoEncoder = 30
Video encoder device
VideoDecoder = 31
Video decoder device
Scmi = 32
SCMI device
NitroSecMod = 33
NitroSecureModule
I2cAdapter = 34
I2C adapter
Watchdog = 35
Watchdog
Can = 36
CAN device
ParamServ = 38
Parameter Server
AudioPolicy = 39
Audio policy device
Bt = 40
Bluetooth device
Gpio = 41
GPIO device
Rdma = 42
RDMA device
Unknown(u8)
Unknown device
Trait Implementations§
Source§impl FromPrimitive for Id
impl FromPrimitive for Id
Source§impl OveralignedField<Le<u32>> for Id
impl OveralignedField<Le<u32>> for Id
Source§fn from_field(field: le32) -> Self
fn from_field(field: le32) -> Self
Converts to this type from the overaligned field.
Source§fn into_field(self) -> le32
fn into_field(self) -> le32
Converts this type into the overaligned field.
impl Copy for Id
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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