Trait distant_net::common::Listener
source · pub trait Listener: Send + Sync {
type Output;
// Required method
fn accept<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Represents a type that has a listen interface for receiving raw streams