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

feat: add unsafe fn from_owned_fd() for owne fd wrapper types #2566

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

SteveLauC
Copy link
Member

What does this PR do

A PR that follows #2563, add:

impl Wrapper {
    pub unsafe fn from_owned_fd(fd: OwnedFd) -> Self
}

For all the remaining OwnedFd wrapper types.

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

@SteveLauC SteveLauC added this pull request to the merge queue Dec 18, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 18, 2024
* feat: add unsafe fn from_owned_fd() for owne fd wrapper types

* chore: changelog
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2024
@SteveLauC SteveLauC added this pull request to the merge queue Dec 18, 2024
Merged via the queue into nix-rust:master with commit 5ec9990 Dec 18, 2024
40 checks passed
@SteveLauC SteveLauC deleted the feat/from_owned_fd_for_wrappers branch December 18, 2024 06:09
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

Successfully merging this pull request may close these issues.

1 participant