pub trait ExitOnError<T>: Sealed {
// Required method
fn exit_on_error(self) -> T;
}Expand description
A trait for exiting processes gracefully.
Required Methods§
Sourcefn exit_on_error(self) -> T
fn exit_on_error(self) -> T
Exits the process with an error message if the result is an error
or the option is None.