pub struct AttemptPanic { /* private fields */ }Expand description
Panic payload captured from an isolated attempt.
AttemptPanic stores a best-effort text message extracted from the panic
payload. String payloads and &'static str payloads preserve their original
text; all other payload types use a generic message.
Implementations§
Trait Implementations§
Source§impl Clone for AttemptPanic
impl Clone for AttemptPanic
Source§fn clone(&self) -> AttemptPanic
fn clone(&self) -> AttemptPanic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttemptPanic
impl Debug for AttemptPanic
Source§impl<'de> Deserialize<'de> for AttemptPanic
impl<'de> Deserialize<'de> for AttemptPanic
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 AttemptPanic
impl Display for AttemptPanic
Source§impl Error for AttemptPanic
impl Error for AttemptPanic
1.30.0 · 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 PartialEq for AttemptPanic
impl PartialEq for AttemptPanic
Source§fn eq(&self, other: &AttemptPanic) -> bool
fn eq(&self, other: &AttemptPanic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttemptPanic
impl Serialize for AttemptPanic
impl Eq for AttemptPanic
impl StructuralPartialEq for AttemptPanic
Auto Trait Implementations§
impl Freeze for AttemptPanic
impl RefUnwindSafe for AttemptPanic
impl Send for AttemptPanic
impl Sync for AttemptPanic
impl Unpin for AttemptPanic
impl UnsafeUnpin for AttemptPanic
impl UnwindSafe for AttemptPanic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<E> IntoBoxError for E
impl<E> IntoBoxError for E
Source§impl<T, D> IntoConfigDefault<T> for Dwhere
D: IntoValueDefault<T>,
impl<T, D> IntoConfigDefault<T> for Dwhere
D: IntoValueDefault<T>,
Source§fn into_config_default(self) -> T
fn into_config_default(self) -> T
Converts this fallback value into
T.Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value.