Trait CalculatorProxyInterface

Source
pub trait CalculatorProxyInterface: Send + Sync {
    type AddResponseFut: Future<Output = Result<i32, Error>> + Send;
    type DivideResponseFut: Future<Output = Result<CalculatorDivideResult, Error>> + Send;

    // Required methods
    fn add(&self, a: i32, b: i32) -> Self::AddResponseFut;
    fn divide(&self, dividend: i32, divisor: i32) -> Self::DivideResponseFut;
    fn clear(&self) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

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

Source

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

Source

fn clear(&self) -> Result<(), Error>

Implementors§