Trait AccountReader
pub trait AccountReader: Send + Sync {
// Required method
fn basic_account(
&self,
address: Address,
) -> Result<Option<Account>, ProviderError>;
}
Expand description
Account reader
Required Methods§
fn basic_account(
&self,
address: Address,
) -> Result<Option<Account>, ProviderError>
fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>
Get basic account information.
Returns None
if the account doesn’t exist.
Implementations on Foreign Types§
§impl AccountReader for MemoryOverlayStateProvider
impl AccountReader for MemoryOverlayStateProvider
fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>
§impl AccountReader for StateProviderTest
impl AccountReader for StateProviderTest
fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>
§impl<'a> AccountReader for MemoryOverlayStateProviderRef<'a>
impl<'a> AccountReader for MemoryOverlayStateProviderRef<'a>
fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>
§impl<'a, T> AccountReader for &'a T
impl<'a, T> AccountReader for &'a T
fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>
§impl<T> AccountReader for Box<T>
impl<T> AccountReader for Box<T>
fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>
§impl<T> AccountReader for Arc<T>
impl<T> AccountReader for Arc<T>
fn basic_account( &self, address: Address, ) -> Result<Option<Account>, ProviderError>
Implementors§
impl AccountReader for MockEthProvider
Available on crate feature
test-utils
only.impl AccountReader for NoopProvider
Available on crate feature
test-utils
only.