Skip to main content

halt_with_code

Function halt_with_code 

Source
pub fn halt_with_code(exit_code: i32, message: Arguments<'_>) -> !
Available on crate feature tracing only.
Expand description

Like halt!, but exits with the given code, so that a restart with a specific cause can be told apart from a routine halt.