Skip to main content

NetBenchBidirectionalStream

Trait NetBenchBidirectionalStream 

Source
pub trait NetBenchBidirectionalStream: Send {
    // Required method
    fn into_split(
        self: Box<Self>,
    ) -> (Box<dyn NetBenchSendStream>, Box<dyn NetBenchReceiveStream>);
}
Expand description

One host-routed reliable bidirectional stream.

Required Methods§

Source

fn into_split( self: Box<Self>, ) -> (Box<dyn NetBenchSendStream>, Box<dyn NetBenchReceiveStream>)

Splits the stream so sending and receiving can run independently.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§