I pass a state object as
self to an
async fn handler(mut self, ...) function. As one of
self's fields I want to have an
log: Arc<TcpStream> so that I can
log.write(json_msg) to a tcp connected logging service. Invariably, I encounter the error:
the trait `serde::Serialize` is not implemented for `std::net::TcpStream`
I assume there is an idiomatic way of doing this or should I impl De-Serializer for the TcpStream?