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§
Sourcefn into_split(
self: Box<Self>,
) -> (Box<dyn NetBenchSendStream>, Box<dyn NetBenchReceiveStream>)
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".