pub enum VirtqError {
RingError(RingError),
Alloc(AllocError),
Backpressure,
OutOfMemory,
BadChain,
PayloadTooLarge {
recv: usize,
limit: usize,
},
ReplyTooLarge,
InvalidState,
MemoryWriteError,
MemoryReadError,
NoPayloadSegment,
}Expand description
Errors that can occur in the virtqueue operations.
Variants§
RingError(RingError)
Alloc(AllocError)
Backpressure
OutOfMemory
BadChain
PayloadTooLarge
ReplyTooLarge
InvalidState
MemoryWriteError
MemoryReadError
NoPayloadSegment
Implementations§
Source§impl VirtqError
impl VirtqError
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Check if this error is transient or unrecoverable.
Trait Implementations§
Source§impl Debug for VirtqError
impl Debug for VirtqError
Source§impl Display for VirtqError
impl Display for VirtqError
Source§impl Error for VirtqError
impl Error for VirtqError
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()
Source§impl From<AllocError> for VirtqError
impl From<AllocError> for VirtqError
Source§fn from(e: AllocError) -> Self
fn from(e: AllocError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VirtqError
impl RefUnwindSafe for VirtqError
impl Send for VirtqError
impl Sync for VirtqError
impl Unpin for VirtqError
impl UnsafeUnpin for VirtqError
impl UnwindSafe for VirtqError
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