Skip to content

Add AsRawFd for nix::dir::OwningIter #1558

Closed
@deantvv

Description

@deantvv

OwningIter is just a wrapper around Dir which implements AsRawFd which makes this easy (or even trivial) to implement.

The only thing that I could think of this may be unsound is after calling drop() on Dir will make the RawFd invalid but this is the same as AsRawFd for Dir which will also suffer from this issue. Link is the discussion of AsRawFd in stdlib.

I can implement this if this feature is approved.

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