pub trait OpeningUniStream: Send {
    type Streams: Streams;
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn wait_uni<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<<Self::Streams as Streams>::SendStream, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Associated Types§

source

type Streams: Streams

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn wait_uni<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<<Self::Streams as Streams>::SendStream, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§