Skip to main content

ReadOnlyAccountProxyInterface

Trait ReadOnlyAccountProxyInterface 

Source
pub trait ReadOnlyAccountProxyInterface: Send + Sync {
    type GetOwnerResponseFut: Future<Output = Result<String, Error>> + Send;
    type GetBalanceResponseFut: Future<Output = Result<i64, Error>> + Send;

    // Required methods
    fn get_owner(&self) -> Self::GetOwnerResponseFut;
    fn get_balance(&self) -> Self::GetBalanceResponseFut;
}

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§