#[repr(u32)]pub enum VirtioDeviceId {
Net = 1,
Block = 2,
Console = 3,
Rng = 4,
Balloon = 5,
Scsi = 8,
Fs = 26,
Vsock = 19,
}Expand description
VirtIO device type IDs.
Variants§
Net = 1
Network device.
Block = 2
Block device.
Console = 3
Console device.
Rng = 4
Entropy source.
Balloon = 5
Balloon device.
Scsi = 8
SCSI host.
Fs = 26
Filesystem device.
Vsock = 19
Socket device.
Trait Implementations§
Source§impl Clone for VirtioDeviceId
impl Clone for VirtioDeviceId
Source§fn clone(&self) -> VirtioDeviceId
fn clone(&self) -> VirtioDeviceId
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 VirtioDeviceId
Source§impl Debug for VirtioDeviceId
impl Debug for VirtioDeviceId
impl Eq for VirtioDeviceId
Source§impl PartialEq for VirtioDeviceId
impl PartialEq for VirtioDeviceId
impl StructuralPartialEq for VirtioDeviceId
Auto Trait Implementations§
impl Freeze for VirtioDeviceId
impl RefUnwindSafe for VirtioDeviceId
impl Send for VirtioDeviceId
impl Sync for VirtioDeviceId
impl Unpin for VirtioDeviceId
impl UnsafeUnpin for VirtioDeviceId
impl UnwindSafe for VirtioDeviceId
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