Enum wiggle::GuestError [−][src]
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)
PtrOutOfBounds(Region)
PtrBorrowed(Region)
Show fields
Fields of InFunc
InvalidUtf8(Utf8Error)
TryFromIntError(TryFromIntError)
Trait Implementations
impl Debug for GuestError
[src]
impl Debug for GuestError
[src]impl Display for GuestError
[src]
impl Display for GuestError
[src]impl Error for GuestError
[src]
impl Error for GuestError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<GuestError> for Trap
[src]
impl From<GuestError> for Trap
[src]fn from(err: GuestError) -> Trap
[src]
fn from(err: GuestError) -> Trap
[src]Performs the conversion.
impl From<TryFromIntError> for GuestError
[src]
impl From<TryFromIntError> for GuestError
[src]fn from(source: TryFromIntError) -> Self
[src]
fn from(source: TryFromIntError) -> Self
[src]Performs the conversion.
impl From<Utf8Error> for GuestError
[src]
impl From<Utf8Error> for GuestError
[src]impl PartialEq<GuestError> for GuestError
[src]
impl PartialEq<GuestError> for GuestError
[src]fn eq(&self, other: &GuestError) -> bool
[src]
fn eq(&self, other: &GuestError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &GuestError) -> bool
[src]
fn ne(&self, other: &GuestError) -> bool
[src]This method tests for !=
.
impl Eq for GuestError
[src]
impl StructuralEq for GuestError
[src]
impl StructuralPartialEq for GuestError
[src]
Auto Trait Implementations
impl RefUnwindSafe for GuestError
impl Send for GuestError
impl Sync for GuestError
impl Unpin for GuestError
impl UnwindSafe for GuestError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]