pub trait Accepting: Send {
    type Request: Request;
    type Error: Error + Send + Sync + 'static;

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

Required Associated Types§

source

type Request: Request

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn wait_accept<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Self::Request, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§