pub struct PostCommitOutcome {
pub gate: PostCommitGate,
pub exit_code: i32,
pub auto_push: Option<AutoPushResult>,
}Expand description
What: The result of the gate and the backup it allowed or prevented. Why: The exit status and the auto-push result come from one place, so the caller only reports them.
In TS you’d write (pseudocode):
{ gate: PostCommitLifecycleResult; autoPush?: AutoPushResult }Fields§
§gate: PostCommitGateThe gate result, including the commit-landed event when blocked.
exit_code: i320 after a backup or a warning-only gate; 2 when the gate blocked the backup.
auto_push: Option<AutoPushResult>The auto-push result, absent when the gate blocked the backup.
Trait Implementations§
Source§impl Clone for PostCommitOutcome
impl Clone for PostCommitOutcome
Source§impl Debug for PostCommitOutcome
impl Debug for PostCommitOutcome
impl Eq for PostCommitOutcome
Source§impl PartialEq for PostCommitOutcome
impl PartialEq for PostCommitOutcome
impl StructuralPartialEq for PostCommitOutcome
Auto Trait Implementations§
impl Freeze for PostCommitOutcome
impl RefUnwindSafe for PostCommitOutcome
impl Send for PostCommitOutcome
impl Sync for PostCommitOutcome
impl Unpin for PostCommitOutcome
impl UnsafeUnpin for PostCommitOutcome
impl UnwindSafe for PostCommitOutcome
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> 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