Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/2575.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Exposed the ```std::os::fd::AsRawFd``` trait method for ```nix::sys::fanotify::Fanotify``` struct
7 changes: 7 additions & 0 deletions src/sys/fanotify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,13 @@ impl AsFd for Fanotify {
}
}

impl AsRawFd for Fanotify {
fn as_raw_fd(&self) -> RawFd
{
self.fd.as_raw_fd()
}
}

impl From<Fanotify> for OwnedFd {
fn from(value: Fanotify) -> Self {
value.fd
Expand Down
Loading