Trait DualTransportHandler

Source
pub trait DualTransportHandler<L, R> {
    // Required method
    fn call(
        &self,
        request: RequestPacket,
        left: L,
        right: R,
    ) -> TransportFut<'static>;
}
Expand description

Trait that determines how to dispatch a request given two transports.

Required Methods§

Source

fn call( &self, request: RequestPacket, left: L, right: R, ) -> TransportFut<'static>

The type of the future returned by the transport.

Implementors§

Source§

impl<F, L, R> DualTransportHandler<L, R> for F
where F: Fn(RequestPacket, L, R) -> TransportFut<'static> + Send + Sync,