Struct switchboard_v2::oracle::OracleMetrics
source · #[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
sourceimpl Clone for OracleMetrics
impl Clone for OracleMetrics
sourcefn clone(&self) -> OracleMetrics
fn clone(&self) -> OracleMetrics
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for OracleMetrics
impl Default for OracleMetrics
sourcefn default() -> OracleMetrics
fn default() -> OracleMetrics
Returns the “default value” for a type. Read more
impl Copy for OracleMetrics
Auto Trait Implementations
impl RefUnwindSafe for OracleMetrics
impl Send for OracleMetrics
impl Sync for OracleMetrics
impl Unpin for OracleMetrics
impl UnwindSafe for OracleMetrics
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more