Add close() method to TcpProvider
Would be grand to be able to know when a TCP connection is closed via the TcpProvider
of a runtime.
I think the desired effect is maybe possible using the Drop
trait for the TcpStream
but with that approach, I'm lacking context data that my custom TcpProvider
has. Of course, I could always clone some reference inside the stream for that but wondering if the close()
approach in the trait wouldn't be a bit better?