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

Support IoSafe on VsockStream, VsockListener #213

Open
kanpov opened this issue Nov 19, 2024 · 1 comment
Open

Support IoSafe on VsockStream, VsockListener #213

kanpov opened this issue Nov 19, 2024 · 1 comment

Comments

@kanpov
Copy link

kanpov commented Nov 19, 2024

Under a vsock feature flag, impl IoSafe for VsockStream and VsockListener so that orphan rule doesn't prevent async-io from being used with them.

@kanpov
Copy link
Author

kanpov commented Nov 19, 2024

For now, my workaround is to get the fd out of the vsock stream and use a std::fs::File as a shim for the fd since File implements IoSafe:

image

Still, this would be nice to have so as not to have to do this.

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

No branches or pull requests

1 participant