Trait internet2::transport::DuplexConnection
source · pub trait DuplexConnection {
// Required methods
fn as_receiver(&mut self) -> &mut dyn RecvFrame;
fn as_sender(&mut self) -> &mut dyn SendFrame;
fn split(self) -> (Box<dyn RecvFrame + Send>, Box<dyn SendFrame + Send>);
}
Expand description
Marker trait for types that can provide a concrete implementation for both
frame parser implementing RecvFrame
and frame composer implementing
SendFrame
. These types must also implement amplify::Bipolar
, i.e.
they must be splittable into the receiving and sending half-types.