pub trait ServerExt {
    type Request;
    type Response;

    fn start<L, R, W>(self, listener: L) -> Result<Box<dyn ServerRef>>
    where
        L: Listener<Output = (W, R)> + 'static,
        R: TypedAsyncRead<Request<Self::Request>> + Send + 'static,
        W: TypedAsyncWrite<Response<Self::Response>> + Send + 'static
; }
Expand description

Extension trait to provide a reference implementation of starting a server that will listen for new connections (exposed as TypedAsyncWrite and TypedAsyncRead) and process them using the Server implementation

Required Associated Types

Required Methods

Start a new server using the provided listener

Implementors