-
Notifications
You must be signed in to change notification settings - Fork 732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move UDS types to unix module #1114
Comments
JFYI some newer versions of Win10 supports it |
Good to know, but Mio doesn't (yet) support them. |
I think this would be a good idea. Using |
I believe that keeping platform specific types in separate modules & trait extensions has been considered a "mistake". Instead, types should just be where they make natural sense and use feature flags to enable / disable. So i would recommend to follow this guidance. |
@carllerche the blog post makes a lot of good points, I'm ok with leaving it the net module. Do you want to the same for Also should more documentation be added that they're Unix only, I know the name suggests it but still. The API in the standard library have a clear blue box, e.g. see https://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html, but I don't know if that is available for user code yet. |
(UDS support on Windows previously discussed in #880 ) |
Not doing this, leaving the UDS types in the net module. |
Currently the UDS types (
UnixDatagram
,UnixListener
,UnixStream
) currently live in the net module, but they are Unix only. Shouldn't these live in the unix module (following what std lib does)? Or perhaps inmio::unix::net
.If Windows (or more platforms) ever get support for them we can always moves them, leaving alias in the unix module.
/cc @kleimkuhler
The text was updated successfully, but these errors were encountered: