Trait distant_core::Listener[][src]

pub trait Listener: Send + Sync {
    type Output;
    fn accept<'a>(
        &'a self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'a>>
    where
        Self: Sync + 'a
; }
Expand description

Represents a type that has a listen interface for receiving raw streams

Associated Types

Required methods

Implementations on Foreign Types

Implementors