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§
fn add<___R>( &self, request: &mut ___R, ) -> Result<TransactionFuture<'_, ___T, Add>, EncodeError>
fn divide<___R>( &self, request: &mut ___R, ) -> Result<TransactionFuture<'_, ___T, Divide>, EncodeError>
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.