pub struct ExecuteCostTable { /* private fields */ }Implementations§
Source§impl ExecuteCostTable
impl ExecuteCostTable
pub fn new(cap: usize) -> Self
pub fn get_count(&self) -> usize
Sourcepub fn get_default_compute_unit_limit(&self) -> u64
pub fn get_default_compute_unit_limit(&self) -> u64
default program cost, set to ComputeBudget::DEFAULT_COMPUTE_UNIT_LIMIT
Sourcepub fn get_global_average_program_cost(&self) -> u64
pub fn get_global_average_program_cost(&self) -> u64
average cost of all recorded programs
Sourcepub fn get_statistical_mode_program_cost(&self) -> u64
pub fn get_statistical_mode_program_cost(&self) -> u64
the most frequently occurring program’s cost
Trait Implementations§
Source§impl AbiExample for ExecuteCostTable
impl AbiExample for ExecuteCostTable
Source§impl Debug for ExecuteCostTable
impl Debug for ExecuteCostTable
Auto Trait Implementations§
impl Freeze for ExecuteCostTable
impl RefUnwindSafe for ExecuteCostTable
impl Send for ExecuteCostTable
impl Sync for ExecuteCostTable
impl Unpin for ExecuteCostTable
impl UnwindSafe for ExecuteCostTable
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> 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