pub trait CalculatorProxyInterface: Send + Sync {
    type AddResponseFut: Future<Output = Result<f64, Error>> + Send;
    type SubtractResponseFut: Future<Output = Result<f64, Error>> + Send;
    type MultiplyResponseFut: Future<Output = Result<f64, Error>> + Send;
    type DivideResponseFut: Future<Output = Result<f64, Error>> + Send;
    type PowResponseFut: Future<Output = Result<f64, Error>> + Send;

    // Required methods
    fn add(&self, a: f64, b: f64) -> Self::AddResponseFut;
    fn subtract(&self, a: f64, b: f64) -> Self::SubtractResponseFut;
    fn multiply(&self, a: f64, b: f64) -> Self::MultiplyResponseFut;
    fn divide(&self, dividend: f64, divisor: f64) -> Self::DivideResponseFut;
    fn pow(&self, base: f64, exponent: f64) -> Self::PowResponseFut;
}

Required Associated Types§

source

type AddResponseFut: Future<Output = Result<f64, Error>> + Send

source

type SubtractResponseFut: Future<Output = Result<f64, Error>> + Send

source

type MultiplyResponseFut: Future<Output = Result<f64, Error>> + Send

source

type DivideResponseFut: Future<Output = Result<f64, Error>> + Send

source

type PowResponseFut: Future<Output = Result<f64, Error>> + Send

Required Methods§

source

fn add(&self, a: f64, b: f64) -> Self::AddResponseFut

source

fn subtract(&self, a: f64, b: f64) -> Self::SubtractResponseFut

source

fn multiply(&self, a: f64, b: f64) -> Self::MultiplyResponseFut

source

fn divide(&self, dividend: f64, divisor: f64) -> Self::DivideResponseFut

source

fn pow(&self, base: f64, exponent: f64) -> Self::PowResponseFut

Implementors§

source§

impl CalculatorProxyInterface for CalculatorProxy

§

type AddResponseFut = QueryResponseFut<f64>

§

type SubtractResponseFut = QueryResponseFut<f64>

§

type MultiplyResponseFut = QueryResponseFut<f64>

§

type DivideResponseFut = QueryResponseFut<f64>

§

type PowResponseFut = QueryResponseFut<f64>