Struct switchboard_solana::oracle_program::accounts::oracle::OracleMetrics
source · #[repr(packed(1))]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§
source§impl Clone for OracleMetrics
impl Clone for OracleMetrics
source§fn clone(&self) -> OracleMetrics
fn clone(&self) -> OracleMetrics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for OracleMetrics
impl Default for OracleMetrics
source§fn 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more