#[non_exhaustive]#[repr(i32)]pub enum ExitCode {
Success = 0,
Usage = 2,
Permission = 3,
NotFound = 4,
Conflict = 5,
Unavailable = 69,
RateLimited = 75,
Timeout = 124,
Cancelled = 130,
Failure = 1,
}Expand description
Process exit code convention shared by rskit CLIs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Success = 0
Successful command.
Usage = 2
Invalid command input or configuration.
Permission = 3
Authentication or authorization failure.
NotFound = 4
Requested resource was not found.
Conflict = 5
Conflict with current state.
Remote dependency or service failure.
RateLimited = 75
Command was rate limited.
Timeout = 124
Command timed out.
Cancelled = 130
Command was cancelled.
Failure = 1
Unclassified failure.
Implementations§
Trait Implementations§
impl Copy for ExitCode
impl Eq for ExitCode
impl StructuralPartialEq for ExitCode
Auto Trait Implementations§
impl Freeze for ExitCode
impl RefUnwindSafe for ExitCode
impl Send for ExitCode
impl Sync for ExitCode
impl Unpin for ExitCode
impl UnsafeUnpin for ExitCode
impl UnwindSafe for ExitCode
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.