pub enum GuestError {
InvalidFlagValue(&'static str),
InvalidEnumValue(&'static str),
PtrOverflow,
PtrOutOfBounds(Region),
PtrNotAligned(Region, u32),
PtrBorrowed(Region),
BorrowCheckerOutOfHandles,
SliceLengthsDiffer,
InFunc {
funcname: &'static str,
location: &'static str,
err: Box<GuestError>,
},
InDataField {
typename: String,
field: String,
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
InDataField
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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref