pub trait ReadWriteAccountProxyInterface: Send + Sync {
type GetOwnerResponseFut: Future<Output = Result<String, Error>> + Send;
type GetBalanceResponseFut: Future<Output = Result<i64, Error>> + Send;
type DebitResponseFut: Future<Output = Result<bool, Error>> + Send;
type CreditResponseFut: Future<Output = Result<(), Error>> + Send;
// Required methods
fn get_owner(&self) -> Self::GetOwnerResponseFut;
fn get_balance(&self) -> Self::GetBalanceResponseFut;
fn debit(&self, amount: i64) -> Self::DebitResponseFut;
fn credit(&self, amount: i64) -> Self::CreditResponseFut;
}Required Associated Types§
type GetOwnerResponseFut: Future<Output = Result<String, Error>> + Send
type GetBalanceResponseFut: Future<Output = Result<i64, Error>> + Send
type DebitResponseFut: Future<Output = Result<bool, Error>> + Send
type CreditResponseFut: Future<Output = Result<(), Error>> + Send
Required Methods§
fn get_owner(&self) -> Self::GetOwnerResponseFut
fn get_balance(&self) -> Self::GetBalanceResponseFut
fn debit(&self, amount: i64) -> Self::DebitResponseFut
fn credit(&self, amount: i64) -> Self::CreditResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".