trident_client::fuzzing

Trait ReadableAccount

Source
pub trait ReadableAccount: Sized {
    // Required methods
    fn lamports(&self) -> u64;
    fn data(&self) -> &[u8] ;
    fn owner(&self) -> &Pubkey;
    fn executable(&self) -> bool;
    fn rent_epoch(&self) -> u64;

    // Provided method
    fn to_account_shared_data(&self) -> AccountSharedData { ... }
}

Required Methods§

Source

fn lamports(&self) -> u64

Source

fn data(&self) -> &[u8]

Source

fn owner(&self) -> &Pubkey

Source

fn executable(&self) -> bool

Source

fn rent_epoch(&self) -> u64

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ReadableAccount for Ref<'_, Account>

Source§

fn lamports(&self) -> u64

Source§

fn data(&self) -> &[u8]

Source§

fn owner(&self) -> &Pubkey

Source§

fn executable(&self) -> bool

Source§

fn rent_epoch(&self) -> u64

Source§

impl ReadableAccount for Ref<'_, AccountSharedData>

Source§

impl<'a> ReadableAccount for LoadedAccount<'a>

Source§

impl<'accounts_file, M> ReadableAccount for TieredReadableAccount<'accounts_file, M>

Source§

fn lamports(&self) -> u64

Returns the balance of the lamports of this account.

Source§

fn owner(&self) -> &'accounts_file Pubkey

Returns the address of the owner of this account.

Source§

fn executable(&self) -> bool

Returns true if the data associated to this account is executable.

Temporarily unimplemented!() as program runtime v2 will use a different API for executable.

Source§

fn rent_epoch(&self) -> u64

Returns the epoch that this account will next owe rent by parsing the specified account block. Epoch::MAX will be returned if the account is rent-exempt.

Source§

fn data(&self) -> &'accounts_file [u8]

Returns the data associated to this account.

Source§

impl<'append_vec> ReadableAccount for AppendVecStoredAccountMeta<'append_vec>

Source§

fn lamports(&self) -> u64

Source§

fn data(&self) -> &'append_vec [u8]

Source§

fn owner(&self) -> &'append_vec Pubkey

Source§

fn executable(&self) -> bool

Source§

fn rent_epoch(&self) -> u64

Source§

impl<'storage> ReadableAccount for StoredAccountMeta<'storage>

Source§

fn lamports(&self) -> u64

Source§

fn data(&self) -> &[u8]

Source§

fn owner(&self) -> &Pubkey

Source§

fn executable(&self) -> bool

Source§

fn rent_epoch(&self) -> u64

Implementors§