pub enum ExitClass {
Failure,
Usage,
Setup,
Internal,
}Expand description
The kind of failure, which decides the exit code. Every error a crate returns says which kind it is, so the binary never has to know the crate’s error types to choose an exit code.
Variants§
Failure
A problem with the user’s code or build artifacts (planned: a compile
error, a failing test, unformatted code under fmt --check, a problem
found by doctor).
Usage
Incorrect usage of the command (an unknown option, a missing argument).
Setup
A configuration or environment problem: the setup cuno runs in is
wrong, not the user’s code (an error in cuno.toml, no compiler found,
a compiler version that does not satisfy a constraint).
Internal
A bug in cuno itself.
Implementations§
Trait Implementations§
impl Copy for ExitClass
impl Eq for ExitClass
impl StructuralPartialEq for ExitClass
Auto Trait Implementations§
impl Forget for ExitClass
impl Freeze for ExitClass
impl Move for ExitClass
impl RefUnwindSafe for ExitClass
impl Send for ExitClass
impl Sync for ExitClass
impl Unpin for ExitClass
impl UnsafeUnpin for ExitClass
impl UnwindSafe for ExitClass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more