pub enum TransactionStop {
NativeExit(i32),
Message(String),
Failed {
code: EngineFailureCode,
message: String,
},
}Expand description
What: Why the transaction stopped without a policy result. Why: The incumbent’s boundary maps each to a different ending: Git’s own exit code with no wrapper text, a message with exit status 1, a finding with exit status 2, or a verbatim stop text.
In TS you’d write (pseudocode):
NativeCommitFailedError | CommitTransactionGitError | IndexLockUnprovenOwnerError | ErrorVariants§
NativeExit(i32)
Native git commit exited nonzero during preparation: its status is the invocation’s, and Git printed why.
Message(String)
A Git step failed: the message reaches standard error and the status is 1.
Failed
A transaction failure reported as an engine failure event with status 2.
Trait Implementations§
Source§impl Debug for TransactionStop
impl Debug for TransactionStop
Source§impl From<CaptureOrderError> for TransactionStop
impl From<CaptureOrderError> for TransactionStop
Source§fn from(failure: CaptureOrderError) -> Self
fn from(failure: CaptureOrderError) -> Self
A capture failure fails the transaction.
Source§impl From<GitFailure> for TransactionStop
impl From<GitFailure> for TransactionStop
Source§fn from(failure: GitFailure) -> Self
fn from(failure: GitFailure) -> Self
A Git step failure keeps its message and ends the command with status 1.
Source§impl From<LandingError> for TransactionStop
impl From<LandingError> for TransactionStop
Source§fn from(failure: LandingError) -> Self
fn from(failure: LandingError) -> Self
A failed landing attempt: an unproven lock owner has its own code, the rest are transaction failures.
Source§impl From<PhaseMarkerError> for TransactionStop
impl From<PhaseMarkerError> for TransactionStop
Source§fn from(failure: PhaseMarkerError) -> Self
fn from(failure: PhaseMarkerError) -> Self
A malformed test marker fails the transaction.
Source§impl From<WorkspaceError> for TransactionStop
impl From<WorkspaceError> for TransactionStop
Source§fn from(failure: WorkspaceError) -> Self
fn from(failure: WorkspaceError) -> Self
An unpublishable workspace fails the transaction.
Auto Trait Implementations§
impl Freeze for TransactionStop
impl RefUnwindSafe for TransactionStop
impl Send for TransactionStop
impl Sync for TransactionStop
impl Unpin for TransactionStop
impl UnsafeUnpin for TransactionStop
impl UnwindSafe for TransactionStop
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
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> ⓘ
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> ⓘ
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