pub enum VirtIOInitializationError {
NotAVirtIODevice,
InvalidVirtIOVersion,
InvalidTransportVersion,
UnknownDeviceType(u32),
IncompatibleDriverDeviceType(VirtIODeviceType),
FeatureNegotiationFailed {
offered: u64,
accepted: Option<u64>,
},
VirtqueueNotAvailable(usize),
DriverPreInitializationError(ErrorCode),
DriverInitializationError(VirtIODeviceType, ErrorCode),
DeviceError,
}
Variants§
NotAVirtIODevice
Device does not identify itself or can be recognized as a VirtIO device.
InvalidVirtIOVersion
An unknown or incompatible VirtIO standard version.
InvalidTransportVersion
An unknown or incompatible VirtIO transport device version.
UnknownDeviceType(u32)
Unknown VirtIO device type (as defined by the VirtIODeviceType
enum).
IncompatibleDriverDeviceType(VirtIODeviceType)
Driver does not support driving the recognized device type.
FeatureNegotiationFailed
Feature negotiation between the device and transport + device driver has failed.
The device offered the offered
features, the driver has either not
accepted this feature set accepted == None
or has responded with the
accepted
feature bitset, which the device has subsequently not
acknowledged.
VirtqueueNotAvailable(usize)
The requested Virtqueue
with respective index is not available with
this VirtIO device.
DriverPreInitializationError(ErrorCode)
An error was reported by the
VirtIODeviceDriver::pre_device_initialization
function. The device
has been put into the FAILED
state.
DriverInitializationError(VirtIODeviceType, ErrorCode)
An error was reported by the VirtIODeviceDriver::device_initialized
function. The device status has been previously indicated as DRIVER_OK
and the transport has NOT put it into the FAILED
state, although
the driver might have. The initialization has continued as usual,
despite reporting this error, hence it also carries the device type.
DeviceError
An invariant was violated by the device. This error should not occur assuming a compliant device, transport and driver implementation.
Trait Implementations§
Source§impl Clone for VirtIOInitializationError
impl Clone for VirtIOInitializationError
Source§fn clone(&self) -> VirtIOInitializationError
fn clone(&self) -> VirtIOInitializationError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more