Struct near_primitives_core::profile::ProfileData[][src]

pub struct ProfileData { /* fields omitted */ }

Profile of gas consumption.

Implementations

impl ProfileData[src]

pub fn new_enabled() -> Self[src]

pub fn new_disabled() -> Self[src]

pub fn add_action_cost(&self, action: ActionCosts, value: u64)[src]

pub fn add_ext_cost(&self, ext: ExtCosts, value: u64)[src]

pub fn all_gas(&self) -> Gas[src]

pub fn get_action_cost(&self, action: usize) -> u64[src]

pub fn get_ext_cost(&self, ext: usize) -> u64[src]

pub fn host_gas(&self) -> u64[src]

pub fn action_gas(&self) -> u64[src]

pub fn wasm_gas(&self) -> u64[src]

pub fn unaccounted_gas(&self) -> u64[src]

pub fn set_burnt_gas(&self, burnt_gas: u64)[src]

Trait Implementations

impl Clone for ProfileData[src]

impl Debug for ProfileData[src]

impl Default for ProfileData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.