pub enum QuarantineDecision {
Reopen,
Abandon,
}Expand description
What a person decided about a run the runtime could not decide.
The two honest answers, and there is deliberately no third. “Mark it succeeded” is not here: a run’s outcome is structural, and a person who could declare one would be able to close a run over work that never happened.
Variants§
Reopen
The doubt is answered; decide the run again.
The runtime re-runs the same judgement it made before, over a history that now contains whatever the operator established. It may reach the same quarantine — if the answer was incomplete, or a second effect is still open — and that is the point: the person supplies facts, the runtime supplies verdicts.
Abandon
Nothing will establish what happened. Close the run where it stands.
Nothing is unwound, because unwinding around an unknown outcome is the
one thing quarantine exists to forbid and an operator’s impatience is
not new evidence. The world keeps whatever the run left in it, the run
seals as Abandoned, and the
doubt remains reportable from the journal for as long as the journal
exists.
Implementations§
Trait Implementations§
Source§impl Clone for QuarantineDecision
impl Clone for QuarantineDecision
impl Copy for QuarantineDecision
Source§impl Debug for QuarantineDecision
impl Debug for QuarantineDecision
Source§impl<'de> Deserialize<'de> for QuarantineDecision
impl<'de> Deserialize<'de> for QuarantineDecision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for QuarantineDecision
Source§impl PartialEq for QuarantineDecision
impl PartialEq for QuarantineDecision
Source§impl Serialize for QuarantineDecision
impl Serialize for QuarantineDecision
impl StructuralPartialEq for QuarantineDecision
Auto Trait Implementations§
impl Freeze for QuarantineDecision
impl RefUnwindSafe for QuarantineDecision
impl Send for QuarantineDecision
impl Sync for QuarantineDecision
impl Unpin for QuarantineDecision
impl UnsafeUnpin for QuarantineDecision
impl UnwindSafe for QuarantineDecision
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
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> ⓘ
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