pub enum VirtioError {
Show 23 variants
InvalidQueue,
QueueNotReady,
InvalidDescriptor,
InvalidAccessWidth,
DeviceNotReady,
InvalidDeviceIndex,
BackendError,
MemoryError,
InvalidConfig,
FeatureNegotiationFailed,
InvalidRequest,
NotSupported,
InvalidBufferSize,
InvalidSector,
InvalidRegister,
InvalidAddress,
RingMisaligned,
RingOverlap,
InvalidRingLayout,
QueueFaulted,
NotFound,
WouldBlock,
InvalidInput,
}Expand description
VirtIO specific error types
Variants§
InvalidQueue
Invalid queue configuration
QueueNotReady
Queue not ready for operation (not configured yet)
InvalidDescriptor
Invalid descriptor
InvalidAccessWidth
Invalid access width for MMIO operation
DeviceNotReady
Device not ready
InvalidDeviceIndex
Invalid device index
BackendError
Backend operation failed
MemoryError
Memory access error
InvalidConfig
Invalid configuration
FeatureNegotiationFailed
Feature negotiation failed
InvalidRequest
Invalid request
NotSupported
Operation not supported
InvalidBufferSize
Invalid buffer size
InvalidSector
Invalid sector
InvalidRegister
Invalid register
InvalidAddress
Invalid address or address translation failed
RingMisaligned
One or more virtqueue rings are misaligned (desc 16B, avail 2B, used 4B)
RingOverlap
The virtqueue ring regions overlap each other
InvalidRingLayout
The virtqueue ring layout is invalid (zero address, region overflow, or a ring region lies outside the guest address space)
QueueFaulted
The queue is faulted after a runtime ring/descriptor failure and must be
reset before further use. Unlike QueueNotReady,
which is a normal pre-configuration state, a faulted queue has served
requests and hit a runtime failure; its guest-serving data paths
(pop/complete, chain walks and data access) reject with this error
and write no guest memory until reset, while the configuration
setters remain usable.
NotFound
Resource not found
WouldBlock
The operation is valid but cannot complete until asynchronous backend work makes progress.
InvalidInput
Invalid input
Trait Implementations§
Source§impl Clone for VirtioError
impl Clone for VirtioError
Source§fn clone(&self) -> VirtioError
fn clone(&self) -> VirtioError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more