Trait distant_net::UnixSocketServerExt
source · [−]pub trait UnixSocketServerExt {
type Request;
type Response;
fn start<'async_trait, P, C>(
self,
path: P,
codec: C
) -> Pin<Box<dyn Future<Output = Result<UnixSocketServerRef>> + Send + 'async_trait>>
where
P: AsRef<Path> + Send,
C: Codec + Send + Sync + 'static,
P: 'async_trait,
C: 'async_trait,
Self: 'async_trait;
}
Expand description
Extension trait to provide a reference implementation of starting a Unix socket server
that will listen for new connections and process them using the Server
implementation
Required Associated Types
Required Methods
Start a new server using the provided listener