start_server

Function start_server 

Source
pub fn start_server<Req, Res, F>(
    socket_name: impl ToString,
    handler: F,
) -> Result<()>
where Req: for<'de> Deserialize<'de> + Send + 'static + Debug, Res: Serialize + Send + 'static + Debug, F: Fn(Req, Sender<Res>) + Send + Sync + Clone + 'static,
Expand description

Spawns a server that listens for requests, then spawns new (std) threads to handle them.