@@ -20,8 +20,8 @@ use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, OwnedFd, RawFd};
20
20
use std:: ptr;
21
21
22
22
libc_bitflags ! {
23
- /// Mask for defining which events shall be listened with
24
- /// [`fanotify_mark`](fn.fanotify_mark.html) and for querying notifications.
23
+ /// Mask for defining which events shall be listened with [`Fanotify::mark()`]
24
+ /// and for querying notifications.
25
25
pub struct MaskFlags : u64 {
26
26
/// File was accessed.
27
27
FAN_ACCESS ;
@@ -80,7 +80,7 @@ libc_bitflags! {
80
80
}
81
81
82
82
libc_bitflags ! {
83
- /// Configuration options for [`fanotify_init`](fn.fanotify_init.html) .
83
+ /// Configuration options for [`Fanotify::init()`] .
84
84
pub struct InitFlags : libc:: c_uint {
85
85
/// Close-on-exec flag set on the file descriptor.
86
86
FAN_CLOEXEC ;
@@ -162,7 +162,7 @@ impl From<EventFFlags> for OFlag {
162
162
}
163
163
164
164
libc_bitflags ! {
165
- /// Configuration options for [`fanotify_mark`](fn.fanotify_mark.html) .
165
+ /// Configuration options for [`Fanotify::mark()`] .
166
166
pub struct MarkFlags : libc:: c_uint {
167
167
/// Add the events to the marks.
168
168
FAN_MARK_ADD ;
@@ -198,8 +198,8 @@ libc_bitflags! {
198
198
/// Compile version number of fanotify API.
199
199
pub const FANOTIFY_METADATA_VERSION : u8 = libc:: FANOTIFY_METADATA_VERSION ;
200
200
201
- /// Abstract over `libc::fanotify_event_metadata`, which represents an event
202
- /// received via `Fanotify::read_events`.
201
+ /// Abstract over [ `libc::fanotify_event_metadata`] , which represents an event
202
+ /// received via [ `Fanotify::read_events`] .
203
203
// Is not Clone due to fd field, to avoid use-after-close scenarios.
204
204
#[ derive( Debug , Eq , Hash , PartialEq ) ]
205
205
#[ repr( transparent) ]
@@ -285,7 +285,7 @@ impl<'a> FanotifyResponse<'a> {
285
285
}
286
286
287
287
libc_bitflags ! {
288
- /// Response to be wrapped in `FanotifyResponse` and sent to the `Fanotify`
288
+ /// Response to be wrapped in [ `FanotifyResponse`] and sent to the [ `Fanotify`]
289
289
/// group to allow or deny an event.
290
290
pub struct Response : u32 {
291
291
/// Allow the event.
0 commit comments