The implementation carries an Option<RawFd> around with it, which corresponds to the underlying socket (if successfully acquired). I've gone ahead and implemented Drop as well, to make its semantics consistent with the other SingleInstance implementations (otherwise it would live for the entire process lifecycle, regardless of whether the "owning" object was dropped).
Here's my attempt at #6.
The implementation carries an
Option<RawFd>
around with it, which corresponds to the underlying socket (if successfully acquired). I've gone ahead and implementedDrop
as well, to make its semantics consistent with the otherSingleInstance
implementations (otherwise it would live for the entire process lifecycle, regardless of whether the "owning" object was dropped).Let me know what you think.