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<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