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§
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".