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) -> Epoch;
}Expand description
Read-only access to account state.
Required Methods§
Sourcefn executable(&self) -> bool
fn executable(&self) -> bool
Returns whether the account is executable.
Sourcefn rent_epoch(&self) -> Epoch
fn rent_epoch(&self) -> Epoch
Returns the rent epoch view for this account.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".