#[repr(packed)]
pub struct OracleMetrics { pub consecutive_success: u64, pub consecutive_error: u64, pub consecutive_disagreement: u64, pub consecutive_late_response: u64, pub consecutive_failure: u64, pub total_success: u128, pub total_error: u128, pub total_disagreement: u128, pub total_late_response: u128, }

Fields

consecutive_success: u64

Number of consecutive successful update request.

consecutive_error: u64

Number of consecutive update request that resulted in an error.

consecutive_disagreement: u64

Number of consecutive update request that resulted in a disagreement with the accepted median result.

consecutive_late_response: u64

Number of consecutive update request that were posted on-chain late and not included in an accepted result.

consecutive_failure: u64

Number of consecutive update request that resulted in a failure.

total_success: u128

Total number of successful update request.

total_error: u128

Total number of update request that resulted in an error.

total_disagreement: u128

Total number of update request that resulted in a disagreement with the accepted median result.

total_late_response: u128

Total number of update request that were posted on-chain late and not included in an accepted result.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.