So bit of a shot in the dark here, Im playing with TcpListener for this example but it could really apply to many others. Say for example i have a listener which im looking to monitor via one line. An example of this is using a method which follows the “unwrap()” or “expect()”.
Heres a sample(obviously doesnt work):
let listener = TcpListener::bind("127.0.0.1:80").unwrap().log("Listener created.");
I’ve done some reading and come across “impl” but i do not know if i can extend ontop of “TcpListener” to allow the above code to work. Is what im looking at even possible or am i just way off?