serve

Function serve 

Source
pub fn serve<Incoming, Store, Executor, Logger>(
    server_params: ServerParams<Incoming, Store, Executor, Logger>,
) -> impl Future<Item = (), Error = HandlingError<Incoming::Error>>
where Incoming: Stream, Incoming::Item: 'static + AsyncRead + AsyncWrite + Send, Store: 'static + Storage + Clone + Send, Executor: Executor<Box<dyn Future<Item = (), Error = ()> + Send + 'static>>, Logger: Into<Logger>,
Expand description

Creates default dscfg server.

This server uses length-delimited Json messages to transfer the data. Use custom() if you want to control encoding.