fidl_fuchsia_examples_services

Trait ReadWriteAccountProxyInterface

Source
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§