Skip to content

Commit

Permalink
Fixed clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
carlvoller committed Jan 15, 2025
1 parent 8be3098 commit 39b2fc0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/sys/fanotify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,23 @@ libc_enum! {
#[repr(u8)]
#[non_exhaustive]
pub enum FanotifyFidEventInfoType {
/// This event occurs if FAN_REPORT_FID was passed into [`Fanotify::init()`]
FAN_EVENT_INFO_TYPE_FID,
/// This event occurs if FAN_REPORT_DIR_FID was passed into [`Fanotify::init()`].
/// For events that occur on a non-directory object, this record includes a file handle
/// that identifies the parent directory filesystem object.
FAN_EVENT_INFO_TYPE_DFID,
/// This event occurs if FAN_REPORT_DIR_FID and FAN_REPORT_NAME was passed into [`Fanotify::init()`].
/// This record is identical to FAN_EVENT_INFO_TYPE_DFID, except that [`FanotifyFidRecord::name()`]
/// will return the name of the target filesystem object.
FAN_EVENT_INFO_TYPE_DFID_NAME,
/// This event occurs if a FAN_RENAME event occurs and FAN_REPORT_DIR_FID and FAN_REPORT_NAME was passed into [`Fanotify::init()`].
/// This record identifies the old parent directory of the renamed directory object.
/// [`FanotifyFidRecord::name()`] will return the name of the old parent directory.
FAN_EVENT_INFO_TYPE_OLD_DFID_NAME,
/// This event occurs if a FAN_RENAME event occurs and FAN_REPORT_DIR_FID and FAN_REPORT_NAME was passed into [`Fanotify::init()`].
/// This record identifies the new parent directory of the renamed directory object.
/// [`FanotifyFidRecord::name()`] will return the name of the new parent directory.
FAN_EVENT_INFO_TYPE_NEW_DFID_NAME,
}
impl TryFrom<u8>
Expand Down

0 comments on commit 39b2fc0

Please sign in to comment.