[][src]Trait internet2::transport::Duplex

pub trait Duplex {
    pub fn as_receiver(&mut self) -> &mut dyn RecvFrame;
pub fn as_sender(&mut self) -> &mut dyn SendFrame;
pub fn split(self) -> (Box<dyn RecvFrame + Send>, Box<dyn SendFrame + Send>); }

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 [Bipolar], i.e. they must be splittable into the receiving and sending half-types.

Any type implementing both [AsReceiver] and [AsSender], plust providing [Bipolar] trait implementation has a blanket implementation of this trait

Required methods

pub fn as_receiver(&mut self) -> &mut dyn RecvFrame[src]

pub fn as_sender(&mut self) -> &mut dyn SendFrame[src]

pub fn split(self) -> (Box<dyn RecvFrame + Send>, Box<dyn SendFrame + Send>)[src]

Loading content...

Implementors

impl Duplex for internet2::transport::ftcp::Connection[src]

impl Duplex for internet2::transport::zmqsocket::Connection[src]

Loading content...