Skip to main content

AccountReader

Trait AccountReader 

Source
pub trait AccountReader {
    // Required method
    fn account_data(&self, key: &Pubkey) -> Option<Vec<u8>>;
}
Expand description

Anything that can fetch raw account data (LiteSVM, RPC, a cache).

Required Methods§

Source

fn account_data(&self, key: &Pubkey) -> Option<Vec<u8>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§