Struct thesis::experiment::Experiment[][src]

pub struct Experiment<T, C, E, R, M> { /* fields omitted */ }
Expand description

An individual experiment. See crate-level documentation for an example on how to use

Implementations

Create a new experiment. The only provided default is accepting the control value in the mismatch handler. All other builder-style functions must be called before run can be called.

Use the future given here as the control, or the existing method for calculating a value

Use the future given here as the experimental, or the new method for calculating a value

Use the given strategy for rolling out the new code

Call this function when running the experiment results in a different value from the control and experimental methods. This can only happen when the rollout strategy returns RolloutDecision::UseExperimentalAndCompare.

Run the experiment with the parameters provided

Run the experiment with the parameters provided

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more