Skip to main content

panic_payload_message

Function panic_payload_message 

Source
pub fn panic_payload_message(payload: Box<dyn Any + Send>) -> String
Expand description

The message carried by a panic payload, for the two payload shapes std::panic! / unwrap / expect actually produce (&'static str and String); anything else is reported as a non-string payload.