#[repr(u8)]pub enum ExitCategory {
Success = 0,
Runtime = 1,
Usage = 2,
AuthRequired = 3,
}Expand description
Process exit categories. See the table in ADR-0012.
Variants§
Success = 0
Command ran successfully.
Runtime = 1
Runtime error: HTTP failure, deserialisation, I/O, server 5xx, …
Usage = 2
Usage error: bad flag, missing argument, unknown identifier.
AuthRequired = 3
Authentication required: endpoint demands auth or token rejected.
Trait Implementations§
Source§impl Clone for ExitCategory
impl Clone for ExitCategory
Source§fn clone(&self) -> ExitCategory
fn clone(&self) -> ExitCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExitCategory
Source§impl Debug for ExitCategory
impl Debug for ExitCategory
impl Eq for ExitCategory
Source§impl PartialEq for ExitCategory
impl PartialEq for ExitCategory
impl StructuralPartialEq for ExitCategory
Auto Trait Implementations§
impl Freeze for ExitCategory
impl RefUnwindSafe for ExitCategory
impl Send for ExitCategory
impl Sync for ExitCategory
impl Unpin for ExitCategory
impl UnsafeUnpin for ExitCategory
impl UnwindSafe for ExitCategory
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.