pub trait WithExitCode: Sized {
// Required method
fn with_exit_code(self, code: u8) -> ExitCoded;
}Expand description
Attach a process exit code to a diagnostic.
Required Methods§
Sourcefn with_exit_code(self, code: u8) -> ExitCoded
fn with_exit_code(self, code: u8) -> ExitCoded
Wrap self in an ExitCoded carrying code.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".