pub struct ExperimentState { /* private fields */ }Expand description
The persistent state of an ExperimentAnalyzer between looks (spec 3.5 §7.12).
The always-valid p-values are running minima over every look, so a process that analyses an
experiment once a day keeps this state and resumes it with
ExperimentAnalyzer::resume. It serialises to camelCase JSON.
Implementations§
Source§impl ExperimentState
impl ExperimentState
Sourcepub fn experiment_id(&self) -> &str
pub fn experiment_id(&self) -> &str
Returns the experiment’s id.
Sourcepub fn final_report(&self) -> Option<&ExperimentReport>
pub fn final_report(&self) -> Option<&ExperimentReport>
Returns the report of the look that stopped the experiment, if it has stopped.
Trait Implementations§
Source§impl Clone for ExperimentState
impl Clone for ExperimentState
Source§impl Debug for ExperimentState
impl Debug for ExperimentState
Source§impl<'de> Deserialize<'de> for ExperimentState
impl<'de> Deserialize<'de> for ExperimentState
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 PartialEq for ExperimentState
impl PartialEq for ExperimentState
Source§impl Serialize for ExperimentState
impl Serialize for ExperimentState
impl StructuralPartialEq for ExperimentState
Auto Trait Implementations§
impl Forget for ExperimentState
impl Freeze for ExperimentStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, ArmSamples> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ArmSamples)>>: Freeze,
*const LeafNode<String, f64> is !null: Freeze,
PhantomData<Box<(String, f64)>>: Freeze,
PhantomData<GuardrailAnalysis>: Freeze,
PhantomData<String>: Freeze,
impl Move for ExperimentState
impl RefUnwindSafe for ExperimentState
impl Send for ExperimentState
impl Sync for ExperimentState
impl Unpin for ExperimentState
impl UnsafeUnpin for ExperimentStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, ArmSamples> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ArmSamples)>>: UnsafeUnpin,
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
PhantomData<GuardrailAnalysis>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ExperimentStatewhere
RawVecInner: UnwindSafe,
BTreeMap<String, ArmSamples>: UnwindSafe,
BTreeMap<String, f64>: 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