fidl_next_examples_calculator

Trait CalculatorClient

Source
pub trait CalculatorClient<___T: Transport> {
    // Required methods
    fn add<___R>(
        &self,
        request: &mut ___R,
    ) -> Result<TransactionFuture<'_, ___T, Add>, EncodeError>
       where for<'buf> ___R: Encode<___T::Encoder<'buf>, Encoded<'buf> = WireCalculatorAddRequest>;
    fn divide<___R>(
        &self,
        request: &mut ___R,
    ) -> Result<TransactionFuture<'_, ___T, Divide>, EncodeError>
       where for<'buf> ___R: Encode<___T::Encoder<'buf>, Encoded<'buf> = WireCalculatorDivideRequest>;
    fn clear(&self) -> Result<___T::SendFuture<'_>, EncodeError>;
}
Expand description

A helper trait for the Calculator client protocol.

Required Methods§

Source

fn add<___R>( &self, request: &mut ___R, ) -> Result<TransactionFuture<'_, ___T, Add>, EncodeError>
where for<'buf> ___R: Encode<___T::Encoder<'buf>, Encoded<'buf> = WireCalculatorAddRequest>,

Source

fn divide<___R>( &self, request: &mut ___R, ) -> Result<TransactionFuture<'_, ___T, Divide>, EncodeError>
where for<'buf> ___R: Encode<___T::Encoder<'buf>, Encoded<'buf> = WireCalculatorDivideRequest>,

Source

fn clear(&self) -> Result<___T::SendFuture<'_>, EncodeError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<___T> CalculatorClient<___T> for Client<___T, Calculator>
where ___T: Transport,

Source§

fn add<___R>( &self, request: &mut ___R, ) -> Result<TransactionFuture<'_, ___T, Add>, EncodeError>
where for<'buf> ___R: Encode<___T::Encoder<'buf>, Encoded<'buf> = WireCalculatorAddRequest>,

Source§

fn divide<___R>( &self, request: &mut ___R, ) -> Result<TransactionFuture<'_, ___T, Divide>, EncodeError>
where for<'buf> ___R: Encode<___T::Encoder<'buf>, Encoded<'buf> = WireCalculatorDivideRequest>,

Source§

fn clear(&self) -> Result<___T::SendFuture<'_>, EncodeError>

Implementors§