pub enum ExitCode {
Failure,
Usage,
Locked,
WorktreeBlocked,
Conflict,
Remote,
MergeUncertified,
IntegrityInconclusive,
}Expand description
The CLI exit-code table (oak --help). Closed: a failure exits with one
of these and nothing else; 0 is success and is not a member.
Variants§
Failure
1 — a failure with no more specific class.
Usage
2 — the invocation itself is wrong.
Locked
3 — the repository is locked by another process (retry).
WorktreeBlocked
4 — the working tree blocked the operation.
Conflict
5 — a merge/sync conflict or an in-progress conflict state.
Remote
6 — network, server, or authentication failure.
MergeUncertified
7 — merge prediction uncertified.
IntegrityInconclusive
8 — integrity proof inconclusive.
Implementations§
Trait Implementations§
impl Copy for ExitCode
impl Eq for ExitCode
impl StructuralPartialEq for ExitCode
Auto Trait Implementations§
impl Forget for ExitCode
impl Freeze for ExitCode
impl Move 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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