pub enum ExitClass {
Internal,
Usage,
Io,
InvalidInput,
Cancelled,
}Expand description
Exit classes of the command-line interface (documented exit codes).
Variants§
Internal
Exit 1: a bug in DiMA.
Usage
Exit 2: invalid command line or parameters.
Io
Exit 3: a file or stream could not be opened, read or written, or the operating system refused a resource (a thread).
InvalidInput
Exit 4: the input data are malformed or unsupported.
Cancelled
Exit 130 (or 143/129, chosen by the front end from the signal received).
Implementations§
Trait Implementations§
impl Copy for ExitClass
impl Eq for ExitClass
impl StructuralPartialEq for ExitClass
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more