Skip to main content

ResearchOutcome

Struct ResearchOutcome 

Source
pub struct ResearchOutcome {
    pub status: ResearchStatus,
    pub max_effect_ns: f64,
    pub max_effect_ci: (f64, f64),
    pub theta_floor: f64,
    pub detectable: bool,
    pub model_mismatch: bool,
    pub effect: EffectEstimate,
    pub samples_used: usize,
    pub quality: MeasurementQuality,
    pub diagnostics: Diagnostics,
}
Expand description

Research mode outcome (spec v4.1 research mode).

This struct is returned when using AttackerModel::Research. Unlike the standard Outcome which makes Pass/Fail decisions, research mode characterizes the timing behavior relative to the measurement floor.

Key differences from standard mode:

  • No Pass/Fail verdict (no threshold comparison)
  • Reports measurement floor (theta_floor) at final sample size
  • detectable field indicates if CI lower bound > floor
  • model_mismatch is non-blocking (tracked but doesn’t stop analysis)

Fields§

§status: ResearchStatus

Research outcome status.

§max_effect_ns: f64

Maximum effect across quantiles: max_k |(Xβ)_k| in nanoseconds. This is the posterior mean of the maximum absolute predicted effect.

§max_effect_ci: (f64, f64)

95% credible interval for maximum effect: (2.5th, 97.5th percentile).

§theta_floor: f64

Measurement floor at final sample size. This is the minimum detectable effect given measurement noise.

§detectable: bool

True if the effect is detectable: CI lower bound > theta_floor.

§model_mismatch: bool

True if model mismatch was detected (Q > q_thresh). In research mode, this is non-blocking but adds a caveat to interpretation.

§effect: EffectEstimate

Effect size estimate with decomposition. If model_mismatch is true, interpretation_caveat will be set.

§samples_used: usize

Number of samples used.

§quality: MeasurementQuality

Measurement quality assessment.

§diagnostics: Diagnostics

Diagnostic information.

Implementations§

Source§

impl ResearchOutcome

Source

pub fn is_effect_detected(&self) -> bool

Check if a timing effect was confidently detected.

Source

pub fn is_no_effect_detected(&self) -> bool

Check if no effect was confidently detected.

Source

pub fn is_resolution_limit_reached(&self) -> bool

Check if the resolution limit was reached.

Source

pub fn has_quality_issue(&self) -> bool

Check if there was a quality issue.

Source

pub fn effect(&self) -> &EffectEstimate

Get the effect estimate.

Source

pub fn quality(&self) -> MeasurementQuality

Get the measurement quality.

Source

pub fn diagnostics(&self) -> &Diagnostics

Get the diagnostics.

Trait Implementations§

Source§

impl Clone for ResearchOutcome

Source§

fn clone(&self) -> ResearchOutcome

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResearchOutcome

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ResearchOutcome

Source§

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 ResearchOutcome

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for ResearchOutcome

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,