Function panic_persist::get_panic_message_bytes[][src]

pub fn get_panic_message_bytes() -> Option<&'static [u8]>
Expand description

Get the panic message from the last boot, if any. This method may possibly not return valid UTF-8 if the message was truncated before the end of a full UTF-8 character. Care must be taken before treating this as a proper &str.

If a message existed, this function will only return the value once (subsequent calls will return None)