pub struct StressTestResult {
pub testrun_id: i64,
pub node_id: NodeId,
pub is_mixnode: bool,
pub test_timestamp: OffsetDateTime,
pub test_performance: f64,
pub was_reachable: bool,
}Expand description
Single stress-test measurement for one node, produced by a network monitor orchestrator.
Fields§
§testrun_id: i64Orchestrator-local id of the test run that produced this result. Combined with the
batch’s signer it uniquely identifies the measurement, allowing nym-api to dedupe
retried submissions on the at-least-once delivery path.
node_id: NodeIdContract-assigned id of the node that was tested.
is_mixnode: boolWhether the tested node was acting as a mixnode during the measurement.
Included explicitly (rather than inferred from on-chain role) so the API can reject or route entries that don’t match the expected role without re-querying the contract.
test_timestamp: OffsetDateTime§test_performance: f64Measured performance score in the [0.0, 1.0] range.
was_reachable: boolWhether the node responded at all during testing.
Recorded alongside test_performance so that a genuine 0.0 score (node responded but
dropped everything) can be distinguished from the node being offline entirely.
Trait Implementations§
Source§impl Clone for StressTestResult
impl Clone for StressTestResult
Source§fn clone(&self) -> StressTestResult
fn clone(&self) -> StressTestResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for StressTestResult
impl ComposeSchema for StressTestResult
Source§impl Debug for StressTestResult
impl Debug for StressTestResult
Source§impl<'de> Deserialize<'de> for StressTestResult
impl<'de> Deserialize<'de> for StressTestResult
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>,
Source§impl Serialize for StressTestResult
impl Serialize for StressTestResult
Auto Trait Implementations§
impl Freeze for StressTestResult
impl RefUnwindSafe for StressTestResult
impl Send for StressTestResult
impl Sync for StressTestResult
impl Unpin for StressTestResult
impl UnsafeUnpin for StressTestResult
impl UnwindSafe for StressTestResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Deprecatable for T
impl<T> Deprecatable for T
fn deprecate(self) -> Deprecated<Self>where
Self: Sized,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> OptionalSet for T
impl<T> OptionalSet for T
Source§fn with_optional<F, T>(self, f: F, val: Option<T>) -> Self
fn with_optional<F, T>(self, f: F, val: Option<T>) -> Self
Some), the provided closure is applied.
Otherwise self is returned with no modifications.Source§fn with_validated_optional<F, T, V, E>(
self,
f: F,
value: Option<T>,
validate: V,
) -> Result<Self, E>
fn with_validated_optional<F, T, V, E>( self, f: F, value: Option<T>, validate: V, ) -> Result<Self, E>
Some) it is validated and then the provided closure is applied.
Otherwise self is returned with no modifications.Source§fn with_optional_env<F, T>(self, f: F, val: Option<T>, env_var: &str) -> Self
fn with_optional_env<F, T>(self, f: F, val: Option<T>, env_var: &str) -> Self
Some), the provided closure is applied.
Otherwise, if the environment was configured and the corresponding variable was set,
the value is parsed using the FromStr implementation and the closure is applied on that instead.
Finally, if none of those were available, self is returned with no modifications.Source§fn with_optional_custom_env<F, T, G>(
self,
f: F,
val: Option<T>,
env_var: &str,
parser: G,
) -> Self
fn with_optional_custom_env<F, T, G>( self, f: F, val: Option<T>, env_var: &str, parser: G, ) -> Self
Some), the provided closure is applied.
Otherwise, if the environment was configured and the corresponding variable was set,
the value is parsed using the provided parser and the closure is applied on that instead.
Finally, if none of those were available, self is returned with no modifications.