Trait ReceiverClientSender

Source
pub trait ReceiverClientSender {
    type Transport: Transport;

    // Required method
    fn receive<___R>(
        &self,
        request: &mut ___R,
    ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
       where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireProtocolPayload>;
}
Expand description

A helper trait for the Receiver client sender.

Required Associated Types§

Source

type Transport: Transport

Required Methods§

Source

fn receive<___R>( &self, request: &mut ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireProtocolPayload>,

Sends a channel to this receiver.

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> ReceiverClientSender for ClientSender<___T, Receiver>
where ___T: Transport,

Source§

fn receive<___R>( &self, request: &mut ___R, ) -> Result<SendFuture<'_, Self::Transport>, EncodeError>
where ___R: Encode<<Self::Transport as Transport>::SendBuffer, Encoded = WireProtocolPayload>,

Sends a channel to this receiver.

Source§

type Transport = ___T

Implementors§