Skip to main content

ScenarioResult

Struct ScenarioResult 

Source
pub struct ScenarioResult {
Show 14 fields pub id: String, pub category: ScenarioCategory, pub description: String, pub status: ScenarioStatus, pub comparisons: Vec<ComparisonResult>, pub elapsed_ms: u64, pub error: Option<String>, pub skip_reason: Option<String>, pub pproxy_observation: Option<ProxyObservation>, pub eggress_observation: Option<ProxyObservation>, pub timing_tolerance_ms: Option<u64>, pub divergence_ids: Vec<String>, pub certification_profile: Option<CertificationProfile>, pub capability_ids: Vec<String>,
}
Expand description

Result of a single scenario.

Fields§

§id: String

Scenario ID.

§category: ScenarioCategory

Scenario category.

§description: String

Scenario description.

§status: ScenarioStatus

Outcome status.

§comparisons: Vec<ComparisonResult>

Comparison results.

§elapsed_ms: u64

Elapsed time for this scenario.

§error: Option<String>

Error message if status is Error.

§skip_reason: Option<String>

Skip reason if status is Skipped.

§pproxy_observation: Option<ProxyObservation>

Observations from pproxy execution.

§eggress_observation: Option<ProxyObservation>

Observations from eggress execution.

§timing_tolerance_ms: Option<u64>

Timing tolerance in milliseconds.

§divergence_ids: Vec<String>

Divergence IDs.

§certification_profile: Option<CertificationProfile>

Certification profile.

§capability_ids: Vec<String>

Capability IDs from the scenario definition.

Implementations§

Source§

impl ScenarioResult

Source

pub fn new(id: &str, category: ScenarioCategory, description: &str) -> Self

Source

pub fn with_status(self, status: ScenarioStatus) -> Self

Source

pub fn with_elapsed(self, elapsed: Duration) -> Self

Source

pub fn with_comparisons(self, comparisons: Vec<ComparisonResult>) -> Self

Source

pub fn with_error(self, error: String) -> Self

Source

pub fn with_skip_reason(self, reason: String) -> Self

Source

pub fn with_pproxy_observation(self, obs: ProxyObservation) -> Self

Source

pub fn with_eggress_observation(self, obs: ProxyObservation) -> Self

Source

pub fn with_timing_tolerance(self, tolerance_ms: u64) -> Self

Source

pub fn with_divergences(self, ids: Vec<String>) -> Self

Source

pub fn with_certification_profile(self, profile: CertificationProfile) -> Self

Source

pub fn with_capability_ids(self, ids: Vec<String>) -> Self

Trait Implementations§

Source§

impl Clone for ScenarioResult

Source§

fn clone(&self) -> ScenarioResult

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ScenarioResult

Source§

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

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

impl<'de> Deserialize<'de> for ScenarioResult

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 Serialize for ScenarioResult

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> 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, 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.