#[non_exhaustive]pub enum Decision {
Continue,
AdoptVariant,
KeepControl {
reason: StopReason,
},
}Expand description
What the experiment should do after a look (spec 3.5 §7.12, A-I15).
Every decision other than Decision::Continue is final: the analyzer returns the same
report for every later look.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Continue
Keep collecting data.
AdoptVariant
The variant is better on the primary metric, no guardrail is breached, and every guardrail’s estimated harm is within its tolerance.
KeepControl
Stop and keep the control.
Fields
§
reason: StopReasonWhy the control is kept.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Forget for Decision
impl Freeze for Decision
impl Move for Decision
impl RefUnwindSafe for Decision
impl Send for Decisionwhere
RawVecInner: Send,
impl Sync for Decisionwhere
RawVecInner: Sync,
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decisionwhere
RawVecInner: UnwindSafe,
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