pub enum PreparationError {
NativeExit {
exit_code: i32,
},
Git(GitFailure),
Write(String),
}Expand description
What: Why a preparation stopped. Why: A nonzero native exit is the invocation’s own exit code, while a start failure is an error.
In TS you’d write (pseudocode):
class NativeCommitFailedError extends Error { exitCode: number }Variants§
NativeExit
Native git commit exited nonzero; its code is the invocation’s code.
Git(GitFailure)
A Git step around the commit failed.
Write(String)
prepared.json could not be written.
Trait Implementations§
Source§impl Debug for PreparationError
impl Debug for PreparationError
Auto Trait Implementations§
impl Freeze for PreparationError
impl RefUnwindSafe for PreparationError
impl Send for PreparationError
impl Sync for PreparationError
impl Unpin for PreparationError
impl UnsafeUnpin for PreparationError
impl UnwindSafe for PreparationError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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