Skip to main content

panic_banner

Function panic_banner 

Source
pub fn panic_banner<W: Write>(writer: &mut W, panic_info: &PanicInfo<'_>)
Expand description

Lightweight prints about the current panic and kernel version.

NOTE: The supplied writer must be synchronous.

Because this requires a PanicInfo reference, this can only be called from a panic context.