Skip to content

FreeBSD nix::sys::event::Kqueue access to inner type #2183

Closed
@eesekaj

Description

@eesekaj

An important functionality is missing in 0.27 for Kqueue.

  1. "field 0 of Kqueue is private"
    There is no way it is possible to close the fd of the kqueue (OwnedFd should do it but in some cases it a raw fd is needed). as_raw_fd() is needed.
  2. An access to the inner type (a raw fd) is needed otherwise it breaks functionality of programs which depends on this functionality. Some programs uses fd number to identify the instance when there are multiple sources.

pub struct Kqueue(OwnedFd); pub struct Epoll(pub OwnedFd);
It would be great to have the same for KQueue.

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