pub struct Calculator;
Expand description
The type corresponding to the Calculator protocol.
Trait Implementations§
Source§impl<___T, ___H> ClientProtocol<___T, ___H> for Calculatorwhere
___T: Transport,
___H: CalculatorClientHandler<___T>,
for<'buf> WireCalculatorAddResult: Decode<<___T as Transport>::Decoder<'buf>>,
for<'buf> WireCalculatorDivideResult<'buf>: Decode<<___T as Transport>::Decoder<'buf>>,
for<'buf> WireCalculatorOnErrorRequest: Decode<<___T as Transport>::Decoder<'buf>>,
impl<___T, ___H> ClientProtocol<___T, ___H> for Calculatorwhere
___T: Transport,
___H: CalculatorClientHandler<___T>,
for<'buf> WireCalculatorAddResult: Decode<<___T as Transport>::Decoder<'buf>>,
for<'buf> WireCalculatorDivideResult<'buf>: Decode<<___T as Transport>::Decoder<'buf>>,
for<'buf> WireCalculatorOnErrorRequest: Decode<<___T as Transport>::Decoder<'buf>>,
Source§impl Debug for Calculator
impl Debug for Calculator
Source§impl<___T, ___H> ServerProtocol<___T, ___H> for Calculatorwhere
___T: Transport,
___H: CalculatorServerHandler<___T>,
for<'buf> WireCalculatorAddRequest: Decode<<___T as Transport>::Decoder<'buf>>,
for<'buf> WireCalculatorDivideRequest: Decode<<___T as Transport>::Decoder<'buf>>,
impl<___T, ___H> ServerProtocol<___T, ___H> for Calculatorwhere
___T: Transport,
___H: CalculatorServerHandler<___T>,
for<'buf> WireCalculatorAddRequest: Decode<<___T as Transport>::Decoder<'buf>>,
for<'buf> WireCalculatorDivideRequest: Decode<<___T as Transport>::Decoder<'buf>>,
Source§fn on_event(handler: &mut ___H, ordinal: u64, buffer: ___T::RecvBuffer)
fn on_event(handler: &mut ___H, ordinal: u64, buffer: ___T::RecvBuffer)
Handles a received server event with the given handler.
Source§fn on_transaction(
handler: &mut ___H,
ordinal: u64,
buffer: ___T::RecvBuffer,
responder: Responder,
)
fn on_transaction( handler: &mut ___H, ordinal: u64, buffer: ___T::RecvBuffer, responder: Responder, )
Handles a received server transaction with the given handler.
Auto Trait Implementations§
impl Freeze for Calculator
impl RefUnwindSafe for Calculator
impl Send for Calculator
impl Sync for Calculator
impl Unpin for Calculator
impl UnwindSafe for Calculator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more