pub enum GuestError {
InvalidFlagValue(&'static str),
InvalidEnumValue(&'static str),
PtrOverflow,
PtrOutOfBounds(Region),
PtrNotAligned(Region, u32),
PtrBorrowed(Region),
BorrowCheckerOutOfHandles,
SliceLengthsDiffer,
InFunc {
modulename: &'static str,
funcname: &'static str,
location: &'static str,
err: Box<GuestError>,
},
InvalidUtf8(Utf8Error),
TryFromIntError(TryFromIntError),
}
Variants§
InvalidFlagValue(&'static str)
InvalidEnumValue(&'static str)
PtrOverflow
PtrOutOfBounds(Region)
PtrNotAligned(Region, u32)
PtrBorrowed(Region)
BorrowCheckerOutOfHandles
SliceLengthsDiffer
InFunc
InvalidUtf8(Utf8Error)
TryFromIntError(TryFromIntError)
Trait Implementations§
Source§impl Debug for GuestError
impl Debug for GuestError
Source§impl Display for GuestError
impl Display for GuestError
Source§impl Error for GuestError
impl Error for GuestError
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<TryFromIntError> for GuestError
impl From<TryFromIntError> for GuestError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for GuestError
impl From<Utf8Error> for GuestError
Source§impl PartialEq for GuestError
impl PartialEq for GuestError
impl Eq for GuestError
impl StructuralPartialEq for GuestError
Auto Trait Implementations§
impl Freeze for GuestError
impl RefUnwindSafe for GuestError
impl Send for GuestError
impl Sync for GuestError
impl Unpin for GuestError
impl UnwindSafe for GuestError
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