Skip to content

Commit dd9b49c

Browse files
committed
Fixed clippy errors
1 parent aa3aac3 commit dd9b49c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/sys/fanotify.rs

+13
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,23 @@ libc_enum! {
241241
#[repr(u8)]
242242
#[non_exhaustive]
243243
pub enum FanotifyFidEventInfoType {
244+
/// This event occurs if FAN_REPORT_FID was passed into [`Fanotify::init()`]
244245
FAN_EVENT_INFO_TYPE_FID,
246+
/// This event occurs if FAN_REPORT_DIR_FID was passed into [`Fanotify::init()`].
247+
/// For events that occur on a non-directory object, this record includes a file handle
248+
/// that identifies the parent directory filesystem object.
245249
FAN_EVENT_INFO_TYPE_DFID,
250+
/// This event occurs if FAN_REPORT_DIR_FID and FAN_REPORT_NAME was passed into [`Fanotify::init()`].
251+
/// This record is identical to FAN_EVENT_INFO_TYPE_DFID, except that [`FanotifyFidRecord::name()`]
252+
/// will return the name of the target filesystem object.
246253
FAN_EVENT_INFO_TYPE_DFID_NAME,
254+
/// This event occurs if a FAN_RENAME event occurs and FAN_REPORT_DIR_FID and FAN_REPORT_NAME was passed into [`Fanotify::init()`].
255+
/// This record identifies the old parent directory of the renamed directory object.
256+
/// [`FanotifyFidRecord::name()`] will return the name of the old parent directory.
247257
FAN_EVENT_INFO_TYPE_OLD_DFID_NAME,
258+
/// This event occurs if a FAN_RENAME event occurs and FAN_REPORT_DIR_FID and FAN_REPORT_NAME was passed into [`Fanotify::init()`].
259+
/// This record identifies the new parent directory of the renamed directory object.
260+
/// [`FanotifyFidRecord::name()`] will return the name of the new parent directory.
248261
FAN_EVENT_INFO_TYPE_NEW_DFID_NAME,
249262
}
250263
impl TryFrom<u8>

0 commit comments

Comments
 (0)