pub fn new() -> (TestTransport, TestTransport) {
        let a = Arc::new(CloseableCursor::default());
        let b = Arc::new(CloseableCursor::default());

        (
            TestTransport {
                read: a.clone(),
                write: b.clone(),
            },
            TestTransport { read: b, write: a },
        )
    }
/// constructs a new test transport pair, representing two ends of
/// a connection. either of them can be written to, and the
/// content will be readable from the other. either of them can
/// also be closed.
constructs a new test transport pair, representing two ends of
a connection. either of them can be written to, and the
content will be readable from the other. either of them can
also be closed.
constructs a new test transport pair representing two ends of a connection . either of them can be written to and the content will be readable from the other . either of them can also be closed .
pub fn new() -> (TestTransport, TestTransport) {
        let a = Arc::new(CloseableCursor::default());
        let b = Arc::new(CloseableCursor::default());
        (
            TestTransport {
                read: a.clone(),
                write: b.clone(),
            },
            TestTransport { read: b, write: a },
        )
    }
pub fn new ( ) -> ( TestTransport , TestTransport ) { let a = Arc :: new ( CloseableCursor :: default ( ) ) ; let b = Arc :: new ( CloseableCursor :: default ( ) ) ; ( TestTransport { read : a . clone ( ) , write : b . clone ( ) , } , TestTransport { read : b , write : a } , ) }
constructs a new test transport pair, representing two ends of
a connection.
constructs a new test transport pair representing two ends of a connection .