pub trait GetStreamPair: Send + 'static {
// Required method
fn open_stream_pair(
self,
) -> impl Future<Output = Result<StreamPair<impl RecvStream, impl SendStream>>> + Send + 'static;
}
Required Methods§
fn open_stream_pair( self, ) -> impl Future<Output = Result<StreamPair<impl RecvStream, impl SendStream>>> + Send + 'static
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.