pub fn pair(
        buffer: usize,
    ) -> (
        Transport<InmemoryStream, PlainCodec>,
        Transport<InmemoryStream, PlainCodec>,
    ) {
        let (a, b) = InmemoryStream::pair(buffer);
        let a = Transport::new(a, PlainCodec::new());
        let b = Transport::new(b, PlainCodec::new());
        (a, b)
    }
/// Produces a pair of inmemory transports that are connected to each other using
/// a standard codec
///
/// Sets the buffer for message passing for each underlying stream to the given buffer size
Produces a pair of inmemory transports that are connected to each other using
a standard codec

Sets the buffer for message passing for each underlying stream to the given buffer size
Produces a pair of inmemory transports that are connected to each other using a standard codec Sets the buffer for message passing for each underlying stream to the given buffer size
pub fn pair(
        buffer: usize,
    ) -> (
        Transport<InmemoryStream, PlainCodec>,
        Transport<InmemoryStream, PlainCodec>,
    ) {
        let (a, b) = InmemoryStream::pair(buffer);
        let a = Transport::new(a, PlainCodec::new());
        let b = Transport::new(b, PlainCodec::new());
        (a, b)
    }
pub fn pair ( buffer : usize , ) -> ( Transport < InmemoryStream , PlainCodec > , Transport < InmemoryStream , PlainCodec > , ) { let ( a , b ) = InmemoryStream :: pair ( buffer ) ; let a = Transport :: new ( a , PlainCodec :: new ( ) ) ; let b = Transport :: new ( b , PlainCodec :: new ( ) ) ; ( a , b ) }
Produces a pair of inmemory transports that are connected to each other using
a standard codec
Produces a pair of inmemory transports that are connected to each other using a standard codec
buffer
usize