pub enum VirtioError {
Common(CommonError),
NotReady(String),
InvalidQueue(String),
InvalidDescriptor(String),
BufferTooSmall {
needed: usize,
got: usize,
},
Io(String),
MemoryError(String),
DeviceError {
device: String,
message: String,
},
FeatureNotSupported(String),
NotSupported(String),
InvalidOperation(String),
}Expand description
Errors that can occur during VirtIO operations.
Variants§
Common(CommonError)
Common error from arcbox-error.
NotReady(String)
Device not ready.
InvalidQueue(String)
Invalid queue configuration.
InvalidDescriptor(String)
Invalid descriptor.
BufferTooSmall
Buffer too small.
Io(String)
VirtIO I/O error (string message).
MemoryError(String)
Memory error.
DeviceError
Device-specific error.
FeatureNotSupported(String)
Feature not supported.
NotSupported(String)
Operation not supported.
InvalidOperation(String)
Invalid operation.
Trait Implementations§
Source§impl Debug for VirtioError
impl Debug for VirtioError
Source§impl Display for VirtioError
impl Display for VirtioError
Source§impl Error for VirtioError
impl Error for VirtioError
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()
Source§impl From<CommonError> for VirtioError
impl From<CommonError> for VirtioError
Source§fn from(source: CommonError) -> Self
fn from(source: CommonError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VirtioError
impl !RefUnwindSafe for VirtioError
impl Send for VirtioError
impl Sync for VirtioError
impl Unpin for VirtioError
impl UnsafeUnpin for VirtioError
impl !UnwindSafe for VirtioError
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