pub enum StackError {
SpOob(StackOp, usize, usize),
CorruptBackPointer(usize, usize),
OverflowingPrefix(u32),
PrefixTooLarge(TryFromIntError),
CorruptPrefix(usize, usize),
ConvertError(String),
BufferFullError(usize, usize),
}Expand description
An error related to the stack discipline of guest I/O
Variants§
SpOob(StackOp, usize, usize)
The stack pointer for a stack entry was out-of-bounds for the stack
CorruptBackPointer(usize, usize)
The back pointer for a stack entry was corrupt
OverflowingPrefix(u32)
A stack entry size prefix was too large for necessary operations on it to remain in the range of a u32
PrefixTooLarge(TryFromIntError)
It was not possible to convert a stack entry size prefix into a usize. This should be impossible on all currently supported architectures, since usize is 64 bits on all of them.
CorruptPrefix(usize, usize)
A stack entry size prefix is larger than its logically-enclosing element
ConvertError(String)
An error was encountered during a routine error conversion that should have been infallible
BufferFullError(usize, usize)
There was not enough free space available on the stack for an element to be pushed
Trait Implementations§
Source§impl Debug for StackError
impl Debug for StackError
Source§impl Display for StackError
impl Display for StackError
Source§impl Error for StackError
impl Error for StackError
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§fn from(source: StackError) -> Self
fn from(source: StackError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StackError
impl RefUnwindSafe for StackError
impl Send for StackError
impl Sync for StackError
impl Unpin for StackError
impl UnsafeUnpin for StackError
impl UnwindSafe for StackError
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