#[repr(u32)]
pub enum DeviceType {
Show 23 variants
Reserved,
NetworkCard,
Block,
Console,
EntropySource,
MemoryBallonningTranditional,
IoMemory,
RpMsg,
ScsiHost,
Transport9P,
Mac802WLan,
RprocSerial,
VirtioCaif,
MemoryBalloon,
Gpu,
TimerClock,
Input,
Socket,
Crypto,
SignalDistributionModule,
Pstore,
IoMmu,
Memory,
}
Expand description
Device Types.
On top of the queues, config space and feature negotiation facilities built into virtio, several devices are defined. The following device IDs are used to identify different types of virtio devices. Some device IDs are reserved for devices which are not currently defined in this standard. Discovering what devices are available and their type is bus-dependent.
Variants§
Reserved
NetworkCard
Block
Console
EntropySource
MemoryBallonningTranditional
IoMemory
RpMsg
ScsiHost
Transport9P
Mac802WLan
RprocSerial
VirtioCaif
MemoryBalloon
Gpu
TimerClock
Input
Socket
Crypto
SignalDistributionModule
Pstore
IoMmu
Memory
Trait Implementations§
source§impl Debug for DeviceType
impl Debug for DeviceType
source§impl TryFrom<u32> for DeviceType
impl TryFrom<u32> for DeviceType
§type Error = TryFromPrimitiveError<DeviceType>
type Error = TryFromPrimitiveError<DeviceType>
The type returned in the event of a conversion error.
source§fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
source§impl TryFromPrimitive for DeviceType
impl TryFromPrimitive for DeviceType
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more