[−][src]Trait pueue_lib::network::platform::unix::socket::GenericListener
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]
&'a self
) -> Pin<Box<dyn Future<Output = Result<GenericStream>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
Implementations on Foreign Types
impl GenericListener for UnixListener
[src]
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]
&'a self
) -> Pin<Box<dyn Future<Output = Result<GenericStream>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,