pub struct ProgramTiming {
pub accumulated_us: u64,
pub accumulated_units: u64,
pub count: u32,
pub errored_txs_compute_consumed: Vec<u64>,
pub total_errored_units: u64,
}
Fields§
§accumulated_us: u64
§accumulated_units: u64
§count: u32
§errored_txs_compute_consumed: Vec<u64>
§total_errored_units: u64
Implementations§
source§impl ProgramTiming
impl ProgramTiming
pub fn coalesce_error_timings(&mut self, current_estimated_program_cost: u64)
pub fn accumulate_program_timings(&mut self, other: &ProgramTiming)
Trait Implementations§
source§impl Debug for ProgramTiming
impl Debug for ProgramTiming
source§impl Default for ProgramTiming
impl Default for ProgramTiming
source§fn default() -> ProgramTiming
fn default() -> ProgramTiming
Returns the “default value” for a type. Read more
source§impl PartialEq for ProgramTiming
impl PartialEq for ProgramTiming
impl Eq for ProgramTiming
impl StructuralPartialEq for ProgramTiming
Auto Trait Implementations§
impl Freeze for ProgramTiming
impl RefUnwindSafe for ProgramTiming
impl Send for ProgramTiming
impl Sync for ProgramTiming
impl Unpin for ProgramTiming
impl UnwindSafe for ProgramTiming
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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>
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