iroh_blobs::api::remote

Trait GetStreamPair

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl GetStreamPair for Connection

Implementors§

Source§

impl<R: RecvStream + 'static, W: SendStream + 'static> GetStreamPair for StreamPair<R, W>