Trait xwt_core::traits::AcceptBiStream

source ·
pub trait AcceptBiStream: Streams {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn accept_bi(
        &self
    ) -> impl Future<Output = Result<BiStreamsFor<Self>, Self::Error>> + Send;
}

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn accept_bi( &self ) -> impl Future<Output = Result<BiStreamsFor<Self>, Self::Error>> + Send

Object Safety§

This trait is not object safe.

Implementors§