Skip to content
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

Raw file descriptor access #9

Open
jimblandy opened this issue Aug 18, 2020 · 1 comment
Open

Raw file descriptor access #9

jimblandy opened this issue Aug 18, 2020 · 1 comment

Comments

@jimblandy
Copy link
Owner

If people want to do something other than what we've provided for in the library, then they should be able to get the raw file descriptor out of a Counter or Group; those types should implement IntoRawFd.

Conversely, it should be possible to construct those types from raw file descriptors, although we need to populate the id and max_members fields somehow.

@jimblandy
Copy link
Owner Author

All that's left here is construction. I don't think we can use any stock traits for that, so I guess there should just be unsafe methods on those types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant