#[non_exhaustive]pub enum StopReason {
GuardrailBreach {
guardrails: Vec<String>,
},
VariantWorse,
SampleLimitReached,
}Expand description
Why an experiment kept the control (spec 3.5 §7.12, A-I15).
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.
GuardrailBreach
One or more guardrails were breached; this overrides the primary metric (A-I15).
VariantWorse
The variant is worse on the primary metric.
SampleLimitReached
Both arms reached the maximum units without a decision.
Trait Implementations§
Source§impl Clone for StopReason
impl Clone for StopReason
Source§impl Debug for StopReason
impl Debug for StopReason
Source§impl<'de> Deserialize<'de> for StopReason
impl<'de> Deserialize<'de> for StopReason
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
Source§impl Display for StopReason
impl Display for StopReason
impl Eq for StopReason
Source§impl PartialEq for StopReason
impl PartialEq for StopReason
Source§impl Serialize for StopReason
impl Serialize for StopReason
impl StructuralPartialEq for StopReason
Auto Trait Implementations§
impl Forget for StopReason
impl Freeze for StopReason
impl Move for StopReason
impl RefUnwindSafe for StopReason
impl Send for StopReasonwhere
RawVecInner: Send,
impl Sync for StopReasonwhere
RawVecInner: Sync,
impl Unpin for StopReason
impl UnsafeUnpin for StopReason
impl UnwindSafe for StopReasonwhere
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