Trait ReadableAccountInfo

Source
pub trait ReadableAccountInfo: Sized {
    // Required methods
    fn pubkey(&self) -> &[u8] ;
    fn owner(&self) -> &[u8] ;
    fn lamports(&self) -> i64;
    fn executable(&self) -> bool;
    fn rent_epoch(&self) -> i64;
    fn data(&self) -> &[u8] ;
    fn write_version(&self) -> i64;
}

Required Methods§

Source

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

Source

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

Source

fn lamports(&self) -> i64

Source

fn executable(&self) -> bool

Source

fn rent_epoch(&self) -> i64

Source

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

Source

fn write_version(&self) -> i64

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<'a> ReadableAccountInfo for ReplicaAccountInfo<'a>

Source§

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

Source§

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

Source§

fn lamports(&self) -> i64

Source§

fn executable(&self) -> bool

Source§

fn rent_epoch(&self) -> i64

Source§

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

Source§

fn write_version(&self) -> i64

Implementors§