pub fn daemon<R, W, S, C, H, E>(
channel: C,
messages_handler: H,
errors_handler: E,
) -> DaemonExpand description
Spawn new thread with a new Server struct which will listen to incoming
messages in a loop, process them using the messages_handler and use
errors_handler on any occuring errors.
If errors_handler returns true, then the thread will be closed.