pub enum Error {
Show 18 variants
AddressOverflow,
GuestMemory(GuestMemoryError),
InvalidIndirectDescriptor,
InvalidIndirectDescriptorTable,
InvalidChain,
InvalidDescriptorIndex,
InvalidMaxSize,
InvalidSize,
InvalidDescTableAlign,
InvalidAvailRingAlign,
InvalidUsedRingAlign,
InvalidAvailRingIndex,
QueueNotReady,
VolatileMemoryError(VolatileMemoryError),
DescriptorChainOverflow,
FindMemoryRegion,
GuestMemoryError(GuestMemoryError),
SplitOutOfBounds(usize),
}
Expand description
Virtio Queue related errors.
Variants§
AddressOverflow
Address overflow.
GuestMemory(GuestMemoryError)
Failed to access guest memory.
InvalidIndirectDescriptor
Invalid indirect descriptor.
InvalidIndirectDescriptorTable
Invalid indirect descriptor table.
InvalidChain
Invalid descriptor chain.
InvalidDescriptorIndex
Invalid descriptor index.
InvalidMaxSize
Invalid max_size.
InvalidSize
Invalid Queue Size.
InvalidDescTableAlign
Invalid alignment of descriptor table address.
InvalidAvailRingAlign
Invalid alignment of available ring address.
InvalidUsedRingAlign
Invalid alignment of used ring address.
InvalidAvailRingIndex
Invalid available ring index.
QueueNotReady
The queue is not ready for operation.
VolatileMemoryError(VolatileMemoryError)
Volatile memory error.
DescriptorChainOverflow
The combined length of all the buffers in a DescriptorChain
would overflow.
FindMemoryRegion
No memory region for this address range.
GuestMemoryError(GuestMemoryError)
Descriptor guest memory error.
SplitOutOfBounds(usize)
DescriptorChain split is out of bounds.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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