fidl_fuchsia_examples_calculator

Trait CalculatorProxyInterface

Source
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

Source§

type AddResponseFut = QueryResponseFut<f64>

Source§

type SubtractResponseFut = QueryResponseFut<f64>

Source§

type MultiplyResponseFut = QueryResponseFut<f64>

Source§

type DivideResponseFut = QueryResponseFut<f64>

Source§

type PowResponseFut = QueryResponseFut<f64>