We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::os::fd::AsRawFd
nix::sys::fanotify::Fanotify
1 parent aeb6fac commit 29bbd8eCopy full SHA for 29bbd8e
changelog/2575.added.md
@@ -0,0 +1 @@
1
+Exposed the ```std::os::fd::AsRawFd``` trait method for ```nix::sys::fanotify::Fanotify``` struct
src/sys/fanotify.rs
@@ -419,6 +419,13 @@ impl AsFd for Fanotify {
419
}
420
421
422
+impl AsRawFd for Fanotify {
423
+ fn as_raw_fd(&self) -> RawFd
424
+ {
425
+ self.fd.as_raw_fd()
426
+ }
427
+}
428
+
429
impl From<Fanotify> for OwnedFd {
430
fn from(value: Fanotify) -> Self {
431
value.fd
0 commit comments