#[non_exhaustive]pub enum PanicReason {
NotImplemented,
UnmatchedPattern,
FutureCompleted,
}
Expand description
Pre-canned panic reasons.
To formulate a custom reason, use
VmError::panic
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotImplemented
Not implemented.
UnmatchedPattern
A pattern didn’t match where it unconditionally has to.
FutureCompleted
Tried to poll a future that has already been completed.
Trait Implementations§
Source§impl Clone for PanicReason
impl Clone for PanicReason
Source§fn clone(&self) -> PanicReason
fn clone(&self) -> PanicReason
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PanicReason
impl Debug for PanicReason
Source§impl<'de> Decode<'de, Binary> for PanicReason
impl<'de> Decode<'de, Binary> for PanicReason
Source§impl<'de> Decode<'de, Text> for PanicReason
impl<'de> Decode<'de, Text> for PanicReason
Source§impl<'de> Deserialize<'de> for PanicReason
impl<'de> Deserialize<'de> for PanicReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PanicReason
impl Display for PanicReason
Source§impl Encode<Binary> for PanicReason
impl Encode<Binary> for PanicReason
Source§impl Encode<Text> for PanicReason
impl Encode<Text> for PanicReason
Source§impl Serialize for PanicReason
impl Serialize for PanicReason
Source§impl TryClone for PanicReason
impl TryClone for PanicReason
impl Copy for PanicReason
Auto Trait Implementations§
impl Freeze for PanicReason
impl RefUnwindSafe for PanicReason
impl Send for PanicReason
impl Sync for PanicReason
impl Unpin for PanicReason
impl UnwindSafe for PanicReason
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