Skip to main content

AccountReader

Trait AccountReader 

Source
pub trait AccountReader {
    // Required method
    fn basic_account(
        &self,
        address: &Address,
    ) -> Result<Option<Account>, ProviderError>;
}
Available on crate feature storage-api only.
Expand description

Account reader

Required Methods§

Source

fn basic_account( &self, address: &Address, ) -> Result<Option<Account>, ProviderError>

Get basic account information.

Returns None if the account doesn’t exist.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, N> AccountReader for MemoryOverlayStateProvider<N>
where N: NodePrimitives,

Source§

impl<'a, T> AccountReader for &'a T
where T: 'a + AccountReader + ?Sized,

Source§

impl<N> AccountReader for MemoryOverlayStateProviderRef<'_, N>
where N: NodePrimitives,

Source§

impl<S> AccountReader for CachedStateProvider<S>
where S: AccountReader,

Source§

impl<S> AccountReader for InstrumentedStateProvider<S>
where S: AccountReader,

Source§

impl<T> AccountReader for Arc<T>
where T: AccountReader + ?Sized,

Source§

impl<T> AccountReader for Box<T>
where T: AccountReader + ?Sized,

Implementors§