[][src]Trait pueue_lib::network::platform::unix::socket::GenericListener

pub trait GenericListener: Sync + Send {
#[must_use]    pub fn accept<'a, 'async_trait>(
        &'a self
    ) -> Pin<Box<dyn Future<Output = Result<GenericStream>> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        Self: 'async_trait
; }

A new trait, which can be used to represent Unix- and TcpListeners. This is necessary to easily write generic functions where both types can be used.

Required methods

#[must_use]pub fn accept<'a, 'async_trait>(
    &'a self
) -> Pin<Box<dyn Future<Output = Result<GenericStream>> + Send + 'async_trait>> where
    'a: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl GenericListener for UnixListener[src]

Loading content...

Implementors

impl GenericListener for TlsTcpListener[src]

Loading content...