trap

Function trap 

Source
pub fn trap<T>(data: T) -> !
where T: AsRef<str>,
Expand description

Traps with the given message.

The environment may copy out the data and log, print or store it in an environment-appropriate way, or include it in system-generated reject messages where appropriate.