Skip to main content

Id

Enum Id 

Source
#[non_exhaustive]
#[repr(u8)]
pub enum Id {
Show 48 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, Camera = 43, Ism = 44, Spi = 45, Tee = 46, CpuBalloon = 47, Media = 48, Usb = 49, Unknown(u8),
}
Expand description

Virtio Device IDs

This enum is not ABI-compatible with it’s corresponding field. Use Id::from for converting from an integer.

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 device

§

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

RTC (Real Time 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

Sound 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

§

Camera = 43

Camera device

§

Ism = 44

ISM device

§

Spi = 45

SPI controller

§

Tee = 46

TEE device

§

CpuBalloon = 47

CPU balloon device

§

Media = 48

Media device

§

Usb = 49

USB controller

§

Unknown(u8)

Unknown device

Trait Implementations§

Source§

impl Clone for Id

Source§

fn clone(&self) -> Id

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Id

Source§

impl Debug for Id

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Id

Source§

impl From<Id> for u8

Source§

fn from(enum_value: Id) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Id

Source§

fn from(number: u8) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for Id

Source§

type Primitive = u8

Source§

fn from_primitive(number: Self::Primitive) -> Self

Source§

impl OveralignedField<Le<u32>> for Id

Source§

fn from_field(field: le32) -> Self

Converts to this type from the overaligned field.
Source§

fn into_field(self) -> le32

Converts this type into the overaligned field.
Source§

impl PartialEq for Id

Source§

fn eq(&self, other: &Id) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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 UnsafeUnpin for Id

§

impl UnwindSafe for Id

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.