Function downcast_payload

Source
pub fn downcast_payload<'a>(
    payload: &'a (dyn Any + Send + 'static),
) -> &'a dyn Message
Expand description

Retrieves panic message from the dynamic payload

Note that while it accepts any type, it is designed to work with panic’s payload