pub trait QuitOnError<T>: Sealed {
// Required method
fn quit_on_error(self) -> T;
}Expand description
Well, if you prefer the word quit to exit.
A trait for quitting processes gracefully.
Required Methods§
Sourcefn quit_on_error(self) -> T
fn quit_on_error(self) -> T
Quits the process with an error message if the result is an error
or the option is None.