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) -> VirtioError
fn from(source: CommonError) -> VirtioError
Converts to this type from the input type.
Source§impl From<Error> for VirtioError
impl From<Error> for VirtioError
Source§fn from(err: Error) -> VirtioError
fn from(err: Error) -> VirtioError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VirtioError
impl !UnwindSafe for VirtioError
impl Freeze for VirtioError
impl Send for VirtioError
impl Sync for VirtioError
impl Unpin for VirtioError
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more