[][src]Struct eosio_system::EosioGlobalState2

pub struct EosioGlobalState2 {
    pub new_ram_per_block: u16,
    pub last_ram_increase: BlockTimestamp,
    pub last_block_num: BlockTimestamp,
    pub total_producer_votepay_share: f64,
    pub revision: u8,
}

Defines new global state parameters added after version 1.0 https://github.com/EOSIO/eosio.contracts/blob/v1.9.0-rc3/contracts/eosio.system/include/eosio.system/eosio.system.hpp#L147-L159

Fields

new_ram_per_block: u16last_ram_increase: BlockTimestamplast_block_num: BlockTimestamptotal_producer_votepay_share: f64revision: u8

Methods

impl EosioGlobalState2[src]

pub fn singleton<C, S>(code: C, scope: S) -> SingletonIndex<Self> where
    C: Into<AccountName>,
    S: Into<ScopeName>, 
[src]

Trait Implementations

impl Default for EosioGlobalState2[src]

impl NumBytes for EosioGlobalState2[src]

impl Read for EosioGlobalState2[src]

impl Table for EosioGlobalState2[src]

type Row = Self

TODO docs

impl Write for EosioGlobalState2[src]

Auto Trait Implementations

impl RefUnwindSafe for EosioGlobalState2

impl Send for EosioGlobalState2

impl Sync for EosioGlobalState2

impl Unpin for EosioGlobalState2

impl UnwindSafe for EosioGlobalState2

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