[][src]Struct solana_libra_language_e2e_tests::account_universe::AccountCurrent

pub struct AccountCurrent { /* fields omitted */ }

Represents the current state of account in a universe, possibly after its state has been updated by running transactions against the universe.

Methods

impl AccountCurrent[src]

pub fn account(&self) -> &Account[src]

Returns the underlying account.

pub fn rotate_key(
    &mut self,
    privkey: Ed25519PrivateKey,
    pubkey: Ed25519PublicKey
)
[src]

Rotates the key in this account.

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

Returns the current balance for this account, assuming all transactions seen so far are applied.

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

Returns the current sequence number for this account, assuming all transactions seen so far are applied.

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

Returns the current sent events count for this account, assuming all transactions seen so far are applied.

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

Returns the current received events count for this account, assuming all transactions seen so far are applied.

Trait Implementations

impl Clone for AccountCurrent[src]

impl Debug for AccountCurrent[src]

impl Eq for AccountCurrent[src]

impl PartialEq<AccountCurrent> for AccountCurrent[src]

impl StructuralEq for AccountCurrent[src]

impl StructuralPartialEq for AccountCurrent[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,