fidl_fuchsia_examples_servicesTrait 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;
}