pub enum PanicReason {
NotImplemented,
UnmatchedPattern,
FutureCompleted,
}Expand description
Pre-canned panic reasons.
To formulate a custom reason, use crate::Panic::custom.
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 duplicate 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> 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 From<PanicReason> for Panic
impl From<PanicReason> for Panic
Source§fn from(value: PanicReason) -> Self
fn from(value: PanicReason) -> Self
Converts to this type from the input type.
Source§impl Serialize for PanicReason
impl Serialize 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