Enum PanicMessage
pub enum PanicMessage
Simplified version of panic payloads, ignoring
types other than &'static str and String.
Variants
-
StaticStr(&'static str) -
String(String) -
Unknown
Implementations
impl PanicMessage
fn as_str(&self) -> Option<&str>fn into_string(self) -> Option<String>
Trait Implementations
impl From<Box<dyn Any + Send>> for PanicMessage
fn from(payload: Box<dyn Any + Send + 'static>) -> Self
impl<S> Decode<'_, '_, S> for PanicMessage
fn decode(r: &mut &[u8], s: &mut S) -> Self
impl<S> Encode<S> for PanicMessage
fn encode(self, w: &mut Buffer, s: &mut S)
Auto Trait Implementations
impl Freeze for PanicMessage
impl RefUnwindSafe for PanicMessage
impl Send for PanicMessage
impl Sync for PanicMessage
impl Unpin for PanicMessage
impl UnsafeUnpin for PanicMessage
impl UnwindSafe for PanicMessage
Blanket Implementations
impl<T> Any for PanicMessage
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PanicMessage
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PanicMessage
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for PanicMessage
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for PanicMessage
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for PanicMessage
impl<T, U> Into<U> for PanicMessage
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PanicMessage
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PanicMessage
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>