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 Freeze for OracleMetrics
impl RefUnwindSafe for OracleMetrics
impl Send for OracleMetrics
impl Sync for OracleMetrics
impl Unpin for OracleMetrics
impl UnwindSafe for OracleMetrics
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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 more