Consider providing additional methods to configure socket - SO_REUSEADDR - SO_LINGER I refrain from using async-std due to their absence. You can check these options in [socket2 ](https://docs.rs/socket2/0.3.11/socket2/)crate.