pub async fn send_message<T: Serialize>( stream: &mut UnixStream, msg: &T, ) -> Result<()>
Send a message over a Unix stream as a single JSON line.