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§

source

type GetOwnerResponseFut: Future<Output = Result<String, Error>> + Send

source

type GetBalanceResponseFut: Future<Output = Result<i64, Error>> + Send

source

type DebitResponseFut: Future<Output = Result<bool, Error>> + Send

source

type CreditResponseFut: Future<Output = Result<(), Error>> + Send

Required Methods§

source

fn get_owner(&self) -> Self::GetOwnerResponseFut

source

fn get_balance(&self) -> Self::GetBalanceResponseFut

source

fn debit(&self, amount: i64) -> Self::DebitResponseFut

source

fn credit(&self, amount: i64) -> Self::CreditResponseFut

Implementors§

source§

impl ReadWriteAccountProxyInterface for ReadWriteAccountProxy

§

type GetOwnerResponseFut = QueryResponseFut<String>

§

type GetBalanceResponseFut = QueryResponseFut<i64>

§

type DebitResponseFut = QueryResponseFut<bool>

§

type CreditResponseFut = QueryResponseFut<()>