Skip to content

EventFd has no conversion from OwnedFd #2561

@chadaustin

Description

@chadaustin

We pass raw fds into a Rust program via FFI, unix domain sockets, and inheritance. There's no way to use EventFd in those situations because I don't see even an unsafe API to convert OwnedFd into EventFd.

Since it's unsafe, maybe a From instance is not appropriate, but perhaps EventFd::from_fd?

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions